CVE-2026-116589 is a denial-of-service in Datadog's dd-trace-py IAST (Code Security) instrumentation. The root cause is in the native C++ aspect that instruments Python's old-style % string formatting operator. The function api_modulo_aspect (in ddtrace/appsec/_iast/_taint_tracking/aspects/aspect_modulo.cpp) converts the format template and each tainted text parameter to std::string via py_candidate_text.cast<string>() and AnyTextObjectToString(param_handle) in order to build taint-tracking "evidence". A lone UTF-16 surrogate character (U+D800–U+DFFF), which can reach applications via JSON escapes like {"x": "\\ud800"} or surrogateescape decoding, cannot be encoded to UTF-8, so pybind11 throws py::cast_error. Unlike other aspects (add_aspect, index_aspect, join_aspect), api_modulo_aspect had no TRY_CATCH_ASPECT guard, so the C++ exception escaped the raw METH_FASTCALL boundary into CPython and invoked std::terminate(), aborting the entire Python process. The fix (commit 69dc19853247434ceab83e0c1c4e279a2eb2a3f7, backported in ace972489b57dd020ff52b706bb548a354f2dd69) wraps the function body in TRY_CATCH_ASPECT("modulo_aspect", ...), causing it to fall back to the precomputed plain result instead of terminating. This confirms api_modulo_aspect is the vulnerable function that would appear in a runtime profile/stack trace during exploitation. The helper do_modulo is not the vulnerable function — it merely performs the actual formatting and is unchanged by the patch.