Skip to main content
EPSS 0.2%top 89%

CVE-2026-76833: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in cgauge @cgauge/yaml

0
High
VulnerabilityCVE-2026-76833cvecve-2026-76833
Published: 08/20/2026 (08/20/2026, 13:33:14 UTC)
Source: CVE Database V5
Vendor/Project: cgauge
Product: @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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Affected software

cgauge

@cgauge/yaml

Affected versions
>=0 <=0.27.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/11/2026, 00:16:49 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses