CVE-2026-76833: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in cgauge @cgauge/yaml
@cgauge/yaml npm package contains an arbitrary code execution vulnerability that allows attackers to execute arbitrary JavaScript by embedding a custom !js YAML tag whose construct callback unconditionally calls eval() on attacker-supplied string values during document parsing. Any application parsing untrusted YAML input with this library exposes full Node.js runtime authority, including environment variable access, filesystem read/write, network access, and subprocess execution, with no safe-mode alternative or opt-out mechanism available.
AI Analysis
Technical Summary
CVE-2026-76833 is an arbitrary code execution vulnerability in the @cgauge/yaml npm package. The flaw is caused by the package's handling of a custom !js YAML tag whose construct callback directly invokes eval() on attacker-supplied string values during YAML parsing. This allows an attacker to execute arbitrary JavaScript code within the Node.js runtime environment, granting access to environment variables, filesystem operations, network communication, and subprocess execution. The vulnerability affects any application that parses untrusted YAML input using this package, and no mitigation or safe parsing mode is provided by the library.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code with full Node.js runtime privileges, leading to complete compromise of the host environment. This includes unauthorized access to environment variables, reading and writing files, network communication, and spawning subprocesses. The vulnerability poses a critical risk to applications that process untrusted YAML data with this package.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid parsing untrusted YAML input with the @cgauge/yaml package. Consider using alternative YAML parsers that do not evaluate code or provide safe parsing modes.
CVE-2026-76833: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in cgauge @cgauge/yaml
Description
@cgauge/yaml npm package contains an arbitrary code execution vulnerability that allows attackers to execute arbitrary JavaScript by embedding a custom !js YAML tag whose construct callback unconditionally calls eval() on attacker-supplied string values during document parsing. Any application parsing untrusted YAML input with this library exposes full Node.js runtime authority, including environment variable access, filesystem read/write, network access, and subprocess execution, with no safe-mode alternative or opt-out mechanism available.
CVSS v4.0
Score 8.4high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-76833 is an arbitrary code execution vulnerability in the @cgauge/yaml npm package. The flaw is caused by the package's handling of a custom !js YAML tag whose construct callback directly invokes eval() on attacker-supplied string values during YAML parsing. This allows an attacker to execute arbitrary JavaScript code within the Node.js runtime environment, granting access to environment variables, filesystem operations, network communication, and subprocess execution. The vulnerability affects any application that parses untrusted YAML input using this package, and no mitigation or safe parsing mode is provided by the library.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary JavaScript code with full Node.js runtime privileges, leading to complete compromise of the host environment. This includes unauthorized access to environment variables, reading and writing files, network communication, and spawning subprocesses. The vulnerability poses a critical risk to applications that process untrusted YAML data with this package.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid parsing untrusted YAML input with the @cgauge/yaml package. Consider using alternative YAML parsers that do not evaluate code or provide safe parsing modes.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-19T20:34:00.154Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8706d1acd9273b49b152c8
Added to database: 08/20/2026, 13:53:21 UTC
Last enriched: 08/20/2026, 14:07:10 UTC
Last updated: 08/20/2026, 14:38:09 UTC
Views: 3
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.