Skip to content
OpenAdvisories
High · 7.8 CVE-2026-76833 EUVD-2026-63350GHSA-fqg3-vq72-r4q2

@cgauge/yaml npm Package Arbitrary Code Execution via eval() YAML Tag

Published Aug 20, 2026 · Updated Aug 20, 2026 · Assigned by VulnCheck

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.

Affected products

VendorProductAffectedFixed
cgauge @cgauge/yaml ≤ 0.27.0 —

References