Arbitrary Code Execution in cgauge/yaml npm Package by cgauge
CVE-2026-76833

8.4HIGH

Key Information:

Vendor

Cgauge

Vendor
CVE Published:
20 August 2026

What is CVE-2026-76833?

The cgauge/yaml npm package is vulnerable to arbitrary code execution, allowing malicious users to execute arbitrary JavaScript code by leveraging a custom !js YAML tag during document parsing. This vulnerability is triggered as the construct callback for this tag calls eval() on attacker-controlled input, providing full access to the Node.js runtime. Consequently, applications processing untrusted YAML data with this library risk exposing system-level controls, including access to sensitive environment variables, file system operations, network communications, and the ability to spawn subprocesses. The absence of a safe-mode option or an opt-out capability further exacerbates the security risks posed by this vulnerability.

Affected Version(s)

@cgauge/yaml 0 <= 0.27.0

References

CVSS V4

Score:
8.4
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Arjun Jain
.