CVE Catalog

CVE-2026-76833

HighCVSS 7.8
Published: Updated: Translated: NVD NIST

Summary

The @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.

Risk Assessment

Organizations using this library to process untrusted YAML are exposed to full compromise of the Node.js process, potentially leading to data theft, system modification, and further attacks within the internal network.

Recommendation

It is recommended to immediately stop using the @cgauge/yaml package for processing untrusted data or to use a secure alternative if available. Also, analyze whether the library was used in production and take appropriate remediation actions.

Related vulnerabilities

Original NVD description (English source)

@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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS