CVE-2026-76833: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in cgauge @cgauge/yaml
Description
@cgauge/yaml npm package versions up to 0.27.0 contain an arbitrary code execution vulnerability. This flaw arises from the use of a custom !js YAML tag that calls eval() on attacker-controlled strings during YAML document parsing. Applications parsing untrusted YAML with this library risk full Node.js runtime compromise, including environment, filesystem, network, and subprocess control. No safe-mode or opt-out mechanism exists to mitigate this risk within the library.
CVSS v4.0
Score 8.4high
Affected software
cgauge
@cgauge/yaml
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @cgauge/yaml npm package (versions <=0.27.0) has an 'Eval Injection' vulnerability (CVE-2026-76833) due to improper neutralization of directives in dynamically evaluated code. Specifically, the custom !js YAML tag's construct callback unconditionally invokes eval() on attacker-supplied strings during YAML parsing. This allows attackers to execute arbitrary JavaScript code with full Node.js runtime privileges, including environment variable access, filesystem read/write, network communication, and subprocess execution. There is no safe-mode or opt-out mechanism in the package to prevent this behavior when parsing untrusted input.
Potential Impact
Successful exploitation results in arbitrary code execution within the Node.js runtime environment. This grants attackers full control over the host environment, including access to environment variables, filesystem operations, network communications, and the ability to spawn subprocesses. The vulnerability poses a high security risk to any application that parses untrusted YAML input using the affected versions of @cgauge/yaml.
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 @cgauge/yaml versions up to 0.27.0. Consider using alternative YAML parsing libraries 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
Threat ID: 6a8706d1acd9273b49b152c8
Added to database: 08/20/2026, 13:53:21 UTC
Last enriched: 09/11/2026, 00:16:49 UTC
Last updated: 10/04/2026, 16:08:41 UTC
Views: 64
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.