Spring Integration's script channel adapters reuse JSR-223 ScriptEngine instances across message processing for resource efficiency. This design is sound in principle—but the Kotlin kts scripting engine, which developers commonly choose for idiomatic Kotlin/Spring workflows, is not thread-safe. When concurrent messages pass through a script-backed channel, one message's evaluation context can bleed into another's, causing state leakage between messages that share the same engine instance.

The critical risk is structural, not volumetric. Spring Integration flows rarely terminate at a single endpoint—they form integration fabric connecting authentication providers, message queues, ERP systems, and multiple tenants. A script channel positioned at a routing or transformation hub can expose data from one message's context (headers, payloads, session-bound credentials) into the evaluation of subsequent messages. In multi-tenant production environments, this means cross-tenant data leakage on a vector that standard security scanning won't catch, since the corruption lives inside the framework's internal engine state rather than persisted data.

If you use Spring Integration with script channel adapters, audit your flows now. Identify every point where a script processor handles messages that cross tenant boundaries, carry authentication tokens, or route to sensitive downstream services. The practical remediation is to ensure each concurrent message path gets its own engine instance—either by configuring non-shared engines where supported, or by isolating script channels into dedicated message processors that don't share engine state across concurrent executions. Given that the kts engine is the idiomatic choice for Kotlin developers, the exposure surface is directly proportional to Kotlin/Spring Integration adoption, making this a growing rather than static risk. Monitor your integration graphs for script channels at hub points; those are your highest-priority remediation targets regardless of the CVSS 5.4 score, which underweights the structural blast radius.