CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



CVE-2026-137198

CVE-2026-137198: Argument Injection in Node.js cross-spawn via Improper Backslash Escaping on Windows

Amit Schendel
Amit Schendel
Senior Security Researcher

Dec 4, 2026·13 min read·2 visits

Executive Summary (TL;DR)

An improper backslash escaping flaw in cross-spawn (versions 6.0.6 and 7.0.4 to 7.0.6) on Windows allows attackers to escape enclosing double quotes when commands are routed via cmd.exe, leading to arbitrary argument injection. Users must upgrade to cross-spawn 6.0.7 or 7.1.0.

CVE-2026-137198 is a high-severity argument injection vulnerability (CWE-88) affecting the Node.js cross-spawn library in versions 6.0.6 and 7.0.4 through 7.0.6. On Windows systems, when commands are routed through cmd.exe (including batch files and npm cmd-shims in node_modules/.bin), cross-spawn fails to properly double contiguous sequences of two or more backslashes preceding a double quote or at the end of an argument. This parsing failure causes the argument's closing quotation mark to be escaped as a literal character, allowing attacker-controlled input to break out of quotation encapsulation and inject arbitrary command-line arguments or consume subsequent arguments.

Vulnerability Overview

The cross-spawn library is a widely deployed utility in the Node.js ecosystem designed to normalize cross-platform differences in child_process.spawn and child_process.spawnSync. While POSIX operating systems pass command-line arguments directly to new processes as an explicit array of string pointers via the execve system call, the Windows operating system relies on a substantially different execution model. Under the Win32 API (CreateProcessW), arguments are serialized into a single combined command-line string (lpCommandLine), leaving the responsibility of tokenizing that string back into an argument array to the newly spawned child process.

Further complicating process invocation on Windows is the execution of non-binary script targets, such as .bat and .cmd batch files, or command shims generated by package managers like npm inside node_modules/.bin. Because CreateProcessW cannot natively execute batch scripts or resolve POSIX-style shebangs without a shell interpreter, cross-spawn intercepts these calls and routes them through the Windows command processor (cmd.exe). To maintain the security guarantee of child_process.spawn—which ensures that arguments are treated strictly as data rather than executable shell syntax—cross-spawn must serialize and escape every argument before constructing the cmd.exe command string.

CVE-2026-137198 (also tracked as GHSA-m6qr-m48x-3xhh) is an argument injection vulnerability classified under CWE-88 (Improper Neutralization of Argument Delimiters in a Command). The vulnerability exists in cross-spawn version 6.0.6 and versions 7.0.4 through 7.0.6. Specifically, the regular expressions responsible for escaping backslashes in lib/util/escape.js fail to properly double sequences of two or more backslashes (\\) when they appear immediately before a double quote or at the end of an argument string.

When a vulnerable version of cross-spawn processes an untrusted argument containing multiple trailing backslashes or backslashes preceding a quote, the resulting serialized command string retains an odd number of backslashes before the closing quotation mark added by the library. When the target program or downstream command parser evaluates the command string, the odd backslash sequence escapes the closing quotation mark rather than terminating the argument boundary. This allows attacker-controlled input to desynchronize argument tokenization, consume subsequent arguments, and inject arbitrary flags into the invoked program.

Root Cause Analysis

To understand the root cause of CVE-2026-137198, it is necessary to examine how the Microsoft C Runtime (CRT) and CommandLineToArgvW tokenize command-line strings on Windows. According to standard CRT parsing rules, arguments containing whitespace or delimiters must be enclosed within double quotes ("arg"). Within or adjacent to a quoted string, backslashes are interpreted literally unless they immediately precede a double quote character ("). When a run of backslashes precedes a double quote, the parser counts the number of contiguous backslashes to determine whether the quote acts as a literal character or a string delimiter.

Under CRT rules, a double quote preceded by an even number ($2N$) of backslashes yields $N$ literal backslashes and treats the double quote as an active string delimiter (either opening or closing the quoted argument). Conversely, a double quote preceded by an odd number ($2N+1$) of backslashes yields $N$ literal backslashes followed by a literal double quote character ("), stripping the quote of its delimiter status. Consequently, when an argument serializer wraps an arbitrary string in enclosing quotes ("...") and escapes internal quotes as \", it must double ($2N$) every contiguous run of backslashes that occurs immediately before an internal double quote AND every run of backslashes situated at the very end of the argument string.

In a prior update intended to mitigate Regular Expression Denial of Service (ReDoS) vulnerabilities (specifically addressing catastrophic backtracking in earlier versions via Pull Request #160), the cross-spawn maintainers refactored the backslash-doubling regular expressions in lib/util/escape.js. They implemented a zero-width positive lookahead emulation of atomic grouping:

// Vulnerable implementation in cross-spawn 6.0.6 and 7.0.4 - 7.0.6
arg = arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"');
arg = arg.replace(/(?=(\\+?)?)\1$/g, '$1$1');
arg = `"${arg}"`;

The defect lies in the use of the non-greedy quantifier +\? combined with the optional group ? inside the positive lookahead (?=(\\+?)?)\1. Because the group ( \\+? )? is optional and non-greedy, the regex engine satisfies the lookahead at the earliest possible position in a contiguous run of backslashes by matching only a minimal subset (or failing to anchor at the start of the full contiguous run). When an input ends with two backslashes (\\), the regex engine fails to capture and double the entire contiguous sequence as a single unit.

For example, when evaluating the trailing backslashes in test\\, at the first backslash index, the optional lookahead (?=(\\+?)?) matches an empty string (since the capturing group is optional with ?), and \1$ fails to match because two characters remain before the end of the string. At the second (final) backslash index, the lookahead matches a single backslash (\1 = \), and \1$ succeeds at the string boundary. The replacement $1$1 only doubles the final backslash while leaving the preceding backslash untouched. Thus, a two-backslash suffix (\\) is transformed into three backslashes (\\\), and when cross-spawn wraps the result in quotes ("test\\\"), the closing quote is preceded by an odd number of backslashes (3), causing the downstream CRT parser to treat the closing quote as a literal character.

Code Analysis

The remediation for CVE-2026-137198 was implemented in commit 1b71aa519a2e4f97d1f3ee27f0e2fc24ba17cf1a (for the 6.x branch, released as v6.0.7) and commit 244ffeaa8473de0080c93ebbf779bb953b94114b (for the 7.x branch, released as v7.1.0). Rather than attempting to repair the regular expression lookahead logic, the patch completely removes regular expression-based backslash doubling in favor of a deterministic, linear-time ($O(N)$) character iteration loop implemented in the new quoteArgument helper function.

// Patched implementation in lib/util/escape.js (v6.0.7 / v7.1.0)
function quoteArgument(arg, escapedQuote) {
    let quoted = '"';
    let backslashes = 0;
 
    for (const char of arg) {
        if (char === '\\') {
            backslashes += 1;
            continue;
        }
 
        if (char === '"') {
            // Double up all backslashes and escape the double quote
            quoted += '\\'.repeat(backslashes * 2) + escapedQuote;
        } else {
            // All other backslashes occur literally
            quoted += '\\'.repeat(backslashes) + char;
        }
 
        backslashes = 0;
    }
 
    // Double up backslashes before the closing quote
    return `${quoted}${'\\'.repeat(backslashes * 2)}"`;
}

This character loop eliminates both ReDoS risk and boundary quantization flaws. It iterates through each character of arg, incrementing a counter (backslashes) whenever a \ is encountered. If the loop encounters a " immediately following a run of backslashes, it emits backslashes * 2 backslashes followed by the specified escapedQuote sequence (\" for standard binaries, or "" for batch files). If any other character is encountered, it emits the exact count of accumulated backslashes unmodified. Upon reaching the end of the string, any remaining trailing backslashes are unconditionally doubled (backslashes * 2) right before appending the closing quote ".

In addition to fixing the backslash doubling flaw, the patch introduces several architectural hardening measures inside lib/util/escape.js and lib/parse.js to address systemic cmd.exe parsing discrepancies:

// Differentiated escaping for executables vs. batch scripts (.bat / .cmd)
const metaCharsRegExp = /([()\][!^"`<>&|;, *?])/g;
const batchFileRegExp = /\.(?:bat|cmd)$/i;
const trailingDotsAndSpacesRegExp = /[. ]+$/;
 
function escapeMetaChars(str) {
    return str.replace(metaCharsRegExp, '^$1').replace(/%/g, '%%cd:~,%');
}
 
function escapeArgument(arg) {
    return escapeMetaChars(quoteArgument( assertNoLineBreaks(`${arg}`), '\\"'));
}
 
function escapeBatchArgument(arg) {
    return escapeMetaChars(quoteArgument(assertNoLineBreaks(`${arg}`), '""'));
}
  1. Batch Script Argument Re-parsing: When cmd.exe invokes a .bat or .cmd file (detected after stripping trailing dots and spaces via trailingDotsAndSpacesRegExp, which prevents bypasses related to Windows filename normalization quirks), batch scripts frequently forward arguments using %* or "%~1". Standard \" escaping fails during secondary batch tokenization passes because cmd.exe toggles its internal quote state on every " without respecting \ as an escape character. The patch introduces escapeBatchArgument(), which escapes internal double quotes by doubling them (""), preserving quotation balance across both cmd.exe tokenization and downstream CRT parsing.

  2. Environment Variable Expansion Neutralization & cmd.exe Flags: Previously, % was included in metaCharsRegExp and escaped as ^%. However, in cmd.exe, caret-escaping % fails if an environment variable whose name ends with a caret (e.g., %VAR^%) exists in the process environment. The patch replaces every % with %%cd:~,%, which leverages cmd.exe substring expansion on the built-in dynamic %cd% variable (extracting a zero-length substring) to break up %VAR% sequences. To guarantee this behavior works across all system configurations, lib/parse.js updates the cmd.exe invocation arguments to ['/d', '/e:on', '/v:off', '/s', '/c', '"..."'], explicitly enabling command extensions (/e:on) and disabling delayed !VAR! variable expansion (/v:off). Furthermore, because cmd.exe cannot reliably escape or inside quoted strings, assertNoLineBreaks() now throws a TypeError if carriage returns or newlines are present.

Exploitation

Exploiting CVE-2026-137198 requires a target Node.js application running on a Windows host that passes user-controlled input as one or more arguments to crossSpawn.spawn() or crossSpawn.spawnSync(). Furthermore, the target command being spawned must be routed through cmd.exe. In practice, this condition is frequently met even when developers intend to execute a standalone tool, because on Windows, any CLI utility installed locally via npm (located in node_modules/.bin/) or globally in the npm prefix is wrapped in a .cmd batch shim (e.g., eslint.cmd, tsc.cmd, prettier.cmd).

Consider a Node.js web service or desktop application on Windows that invokes a CLI tool via cross-spawn, passing a user-supplied string as an argument:

const spawn = require('cross-spawn');
 
// Example: Application passes user-controlled search query or path followed by an internal flag
function runTool(userInput) {
    // If 'my-cli-tool' resolves to 'node_modules/.bin/my-cli-tool.cmd', cross-spawn routes via cmd.exe
    spawn('my-cli-tool', ['--input', userInput, '--safe-mode']);
}

There are two primary exploitation patterns depending on the position and count of controlled arguments:

Scenario 1: Single-Argument Breakout via Embedded Quote and Double Backslash If the attacker supplies an input containing two backslashes followed by a double quote and space-separated flags, such as value\\" --malicious-flag, the vulnerable regex arg.replace(/(?=(\\+?)?)\1"/g, '$1$1\\"') fails to double both backslashes before the quote. Instead of producing four backslashes plus \" (five total backslashes, which is odd and escapes the quote), the broken regex doubles only the last backslash, outputting value\\\\" --malicious-flag (four backslashes before the quote). When wrapped in outer quotes ("value\\\\" --malicious-flag"), the CRT parser sees an even number of backslashes (4) before the internal quote. It evaluates this as two literal backslashes (\\) followed by a closing string delimiter ("). Consequently, the quoted argument terminates prematurely after value\\, and --malicious-flag is tokenized as an independent command-line argument (argv[n+1]) by the target application.

Scenario 2: Argument Consumption via Trailing Backslashes If an attacker controls an argument and terminates it with two backslashes (e.g., userInput = "C:\\temp\\\\"), the vulnerable end-of-string regex arg.replace(/(?=(\\+?)?)\1$/g, '$1$1') converts the two trailing backslashes into three backslashes (C:\\temp\\\\\\). When cross-spawn encloses the argument in quotes ("C:\\temp\\\\\\"), the closing quote is preceded by an odd number of backslashes (3) and is therefore escaped as a literal ". The argument remains open, consuming the whitespace and the subsequent argument (--safe-mode) until the parser encounters the opening quote of a following argument. If the attacker controls two distinct arguments in the array, they can use trailing backslashes in the first argument to consume intermediate hard-coded flags and treat the second attacker-controlled argument as unquoted command-line tokens.

Impact Assessment

The security impact of CVE-2026-137198 is rated High, with a CVSS v4.0 base score of 8.3 (CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N). It is important to distinguish the scope of this vulnerability from full shell command injection (CWE-78). Because cross-spawn still applies ^ caret escaping to cmd.exe shell metacharacters (&, |, >, <, (, )) after quoting the argument, escaping the argument's double quotes does not directly allow an attacker to chain a separate cmd.exe shell command via && or | in standard executable invocations.

Instead, the vulnerability grants the attacker arbitrary argument injection (CWE-88) into the target program being spawned. The concrete consequences depend entirely on the capabilities and command-line flags supported by the invoked executable or script. Many standard developer utilities, compilers, archive tools, and version control binaries (such as git, tar, 7z, ffmpeg, eslint, or webpack) accept flags that dictate configuration files to load, plugins to execute, or output file paths to overwrite (e.g., --config, --output, --exec, --upload-pack).

When an attacker injects such arguments into a privileged or backend process, they can achieve high-integrity impact (VI:H), including arbitrary file overwrite, unauthorized file modification, or remote code execution if the target utility supports flags that load external scripts or execute sub-commands. Furthermore, as noted in the official advisory, the calling Node.js application frequently cannot detect that an injection has occurred if the target utility accepts the injected arguments and exits with return code 0. Conversely, if the injected tokens cause a syntax error in the target utility, the subprocess will fail unexpectedly, causing a localized denial of service (VA:L).

From a threat intelligence perspective, CVE-2026-137198 currently exhibits an EPSS score of 0.00562 (48.20th percentile) and is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Only Windows environments are affected; Node.js applications running on Linux, macOS, or other POSIX platforms are unaffected because cross-spawn passes arguments directly to the underlying OS kernel via Node's native spawn without invoking a command shell or serializing arguments into a single string.

Remediation

Remediation of CVE-2026-137198 requires upgrading the cross-spawn package to a patched release that includes the linear-time quoteArgument implementation and hardened cmd.exe escaping routines. The maintainers have published fixed versions for both supported major release branches:

  • For cross-spawn 6.x users: Upgrade to version 6.0.7 or later.
  • For cross-spawn 7.x users: Upgrade to version 7.1.0 or later.

> [!NOTE] > cross-spawn is frequently included as a deeply nested transitive dependency by build tools, test runners, and CLI frameworks. Developers should inspect their lockfiles (package-lock.json, yarn.lock, or pnpm-lock.yaml) using npm ls cross-spawn and use npm audit fix or package manager overrides / resolutions to ensure no vulnerable versions (6.0.6, 7.0.4, 7.0.5, 7.0.6) remain in the dependency tree.

In scenarios where an immediate dependency upgrade is not feasible, security engineers can implement defensive workarounds at the application layer on Windows hosts:

  1. Strict Input Validation: Validate and sanitize all externally supplied arguments before passing them to cross-spawn. Specifically, reject or strip contiguous sequences of backslashes (\\), embedded double quotes ("), and line break characters (\r, \n) when they are not strictly required by business logic.
  2. Direct Binary Execution: Where possible on Windows, invoke native .exe binaries directly or invoke Node.js CLI scripts directly via process.execPath (e.g., spawn(process.execPath, ['./node_modules/my-tool/bin/cli.js', ...args])) rather than resolving .cmd shims inside node_modules/.bin. Executing node.exe directly bypasses cmd.exe shell routing entirely.
  3. Assessment of Patch Completeness: The fixes introduced in 6.0.7 and 7.1.0 are comprehensive. By replacing regular expression backtracking with a deterministic state machine (quoteArgument), separating batch file ("") vs. binary (\") quote escaping, neutralizing %VAR% and !VAR! expansion via /e:on /v:off and %%cd:~,%, and rejecting / characters outright, the patch resolves both the specific backslash-doubling bug and broader classes of Windows cmd.exe argument injection.

Official Patches

GitHub / MoxystudioOfficial GitHub Security Advisory (GHSA-m6qr-m48x-3xhh)
GitHub / Moxystudiocross-spawn v6.0.7 Release Notes
GitHub / Moxystudiocross-spawn v7.1.0 Release Notes

Fix Analysis (2)

Technical Appendix

CVSS Score
8.3/ 10
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N
EPSS Probability
0.56%
Top 52% most exploited

Affected Systems

cross-spawn (npm package) on Microsoft Windows

Affected Versions Detail

Product
Affected Versions
Fixed Version
cross-spawn
Moxystudio
>= 6.0.6, < 6.0.76.0.7
cross-spawn
Moxystudio
>= 7.0.4, < 7.1.07.1.0
AttributeDetail
CVE IDCVE-2026-137198 (GHSA-m6qr-m48x-3xhh)
Weakness ClassCWE-88: Argument Injection
CVSS v4.0 Score8.3 High (CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:H/VA:L/SC:N/SI:N/SA:N)
EPSS Score0.562% (48.20th Percentile)
Affected Versionscross-spawn 6.0.6 and 7.0.4 - 7.0.6 (Windows only)
Patched Versionscross-spawn 6.0.7 and 7.1.0
Exploit StatusProof-of-Concept (Unit test fixtures; not in CISA KEV)

MITRE ATT&CK Mapping

T1059Command and Scripting Interpreter
Execution
T1059.003Windows Command Shell
Execution
T1202Indirect Command Execution
Defense Evasion
CWE-88
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

The product constructs a command string intended for another process using externally-influenced input, but it fails to neutralize or improperly neutralizes argument delimiters before passing the command to the target process.

Vulnerability Timeline

Patched versions v6.0.7 and v7.1.0 released on GitHub and npm
2026-11-28
CVE-2026-137198 and GHSA-m6qr-m48x-3xhh officially published
2026-11-30
NVD and OSV metadata updated with CVSS v4.0 scoring
2026-12-02

References & Sources

  • [1]GitHub Security Advisory GHSA-m6qr-m48x-3xhh
  • [2]Patch Commit for cross-spawn 6.x (v6.0.7)
  • [3]Patch Commit for cross-spawn 7.x (v7.1.0)
  • [4]Pull Request #191 (v6.0.7 Fix)
  • [5]Pull Request #192 (v7.1.0 Fix)
  • [6]cross-spawn v6.0.7 Release Tag
  • [7]cross-spawn v7.1.0 Release Tag
  • [8]NVD Detail for CVE-2026-137198
  • [9]CVE.org Record for CVE-2026-137198
  • [10]CVEListV5 JSON Record for CVE-2026-137198
  • [11]Wiz Vulnerability Database: CVE-2026-137198

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 1 hour ago•CVE-2026-144292
7.6

CVE-2026-144292: Client-Side Template Injection and Cross-Site Scripting in DOMPurify via SAFE_FOR_TEMPLATES Bypass

DOMPurify prior to version 3.5.0 contains a sanitization bypass in the SAFE_FOR_TEMPLATES configuration mode. By embedding split template expression delimiters across invalid nested <form> elements, an attacker can evade character data scrubbing during initial sanitization. When the sanitized markup is subsequently re-parsed into the DOM via innerHTML, browser HTML5 parsing rules strip the nested <form> tags and concatenate the split text nodes, reconstructing executable template expressions that trigger Cross-Site Scripting (XSS) in client-side template engines.

Amit Schendel
Amit Schendel
4 views•11 min read
•about 2 hours ago•CVE-2026-74870
3.3

CVE-2026-74870: Cleartext Exposure of Hardware-Derived Cryptographic Peppers in openssl_encrypt

CVE-2026-74870 is an information exposure vulnerability in the Python package openssl_encrypt affecting versions 1.4.7 and earlier. The diagnostic CLI subcommands 'hsm fido2-test' and 'hsm onlykey-test' unconditionally write full derived hardware cryptographic peppers as hexadecimal strings to standard error. Additionally, the FIDO2 hardware pepper plugin logs unredacted pseudo-random function (PRF) output to debug logs and user-facing error messages. While the diagnostic pepper is bound to a random per-invocation test salt and cannot directly decrypt stored files, the behavior exposes raw hardware-derived key material to terminal scrollbacks, session recordings, and CI/CD logs.

Alon Barad
Alon Barad
5 views•10 min read
•about 4 hours ago•CVE-2026-142624
6.5

CVE-2026-142624: Validation Logic Bypass via In-Band Sentinel Value Collision in Laravel Framework

A validation logic bypass vulnerability exists in the Laravel Framework validation subsystem prior to versions 12.72.0 and 13.43.0. When validating nested attributes or wildcard arrays using the 'sometimes' rule, the framework uses the literal string '__missing__' as an in-band sentinel value to detect absent keys. An attacker who submits the literal string '__missing__' as the value for a nested attribute causes the validator to misinterpret the field as omitted, bypassing all subsequent validation rules while still returning the unvalidated string in the validated dataset.

Amit Schendel
Amit Schendel
11 views•11 min read
•about 5 hours ago•CVE-2026-142643
5.3

CVE-2026-142643: Validation Exists Rule Bypass via Type Confusion in Laravel Framework

CVE-2026-142643 is a type confusion vulnerability in the Laravel Framework validation subsystem (Illuminate\Validation\DatabasePresenceVerifier) affecting versions prior to 12.73.0 and 13.43.0. When processing JSON-encoded HTTP requests, the framework preserves native integer and boolean scalar types and passes them unchanged into SQL parameter bindings for 'exists' and 'unique' validation rules. On MySQL and MariaDB databases, comparing a string column against an integer value triggers implicit numeric type coercion, causing any non-numeric string entry to evaluate to zero. Consequently, an unauthenticated remote attacker can submit an integer zero or boolean false in a JSON payload to bypass record-existence validation rules without knowing a valid string identifier.

Alon Barad
Alon Barad
5 views•11 min read
•about 6 hours ago•CVE-2026-142649
5.3

CVE-2026-142649: Input Validation Bypass via Loose Type Comparison in Laravel Framework

CVE-2026-142649 (also tracked as GHSA-h2hg-mfj4-rg7q) is an input validation bypass vulnerability affecting the validation subsystem of the Laravel web application framework (laravel/framework). Specifically, the validateIn method in src/Illuminate/Validation/Concerns/ValidatesAttributes.php performs non-strict comparisons when evaluating scalar input values against defined allowlists for the 'in', 'Rule::in', and 'not_in' validation rules. Because PHP's native in_array() function defaults to loose equality (==) when the third parameter ($strict) is omitted, numeric strings with non-canonical representations—such as leading or trailing whitespace, embedded newlines, leading zeros, positive signs, decimal points, or scientific notation—evaluate as equal to standard numeric allowlist entries. Furthermore, because Laravel's validated() and valid() accessor methods return the original, un-canonicalized input string rather than the matched allowlist token, unvalidated characters and unexpected string formats propagate directly into downstream business logic, database queries, and state enforcement checks.

Alon Barad
Alon Barad
6 views•10 min read
•about 7 hours ago•CVE-2026-142652
7.7

CVE-2026-142652: SQL Injection in Agenta Tracing Full-Text Content Filter

An authenticated SQL injection vulnerability exists in Agenta prior to version 0.122.5 within the tracing database query layer. The full-text content filter handler in api/oss/src/dbs/postgres/tracing/utils.py interpolates user-supplied search strings directly into a SQLAlchemy text() construct without parameter binding or escaping. This flaw allows an authenticated user with read access to spans in a single project to execute arbitrary SQL conditions against the tracing database, bypassing project and tenant isolation boundaries to exfiltrate trace data across the entire platform.

Amit Schendel
Amit Schendel
6 views•9 min read