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

Published Aug 20, 2026
·
Updated

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

1 affected component
npm/@cgauge/yaml

Event History

Aug 20, 2026
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications that parse untrusted YAML using npm/@cgauge/yaml are exposed. Successful exploitation gives code the same Node.js runtime authority as the parsing application, including access to environment variables, files, network resources, and subprocess execution.

2

What must an attacker provide to exploit it?

An attacker needs to cause the application to parse YAML they control containing a custom !js tag. During parsing, the tag's construct callback passes the attacker-controlled string to eval().

3

Is there a safe-mode setting or opt-out that prevents exploitation?

No. The provided information states that the package has no safe-mode alternative or opt-out mechanism for this behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203