Skip to content

CVE-2026-76833 @cgauge/yaml npm Package Arbitrary Code Execution via eval() YAML Tag

HighCVSS 8.4 EPSS 0.22%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total

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.

Upgrade path

1 package: 1 fixed.

PackageAffectedFixed inStatus
crates.io dua-cli <= 0.27.0 after 0.27.0 Fixed

Affected products

ProductAffected versionsFixed in
crates.io dua-cli <= 0.27.0 No fix listed

References