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.
Severity (CVSS)
| Base score | 8.4 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | 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 |
| Provided by | CNA |
Weaknesses
- CWE-95 — Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| cgauge | @cgauge/yaml | 0 to <=0.27.0 |
References
- https://github.com/cgauge/packages (product)
- https://gist.github.com/arjunjaincs/35da3a80b4b16f324f194acec18489ba (technical-description)
- https://www.vulncheck.com/advisories/cgauge-yaml-npm-package-arbitrary-code-execution-via-eval-yaml-tag (third-party-advisory)
Generated from the official CVE List on 21 Aug 2026 07:00 UTC.