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.
Published: 2026-08-20
Score: 8.4 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Based on the description, it is inferred that the @cgauge/yaml package contains a flaw that lets attackers execute arbitrary JavaScript code by including the custom !js YAML tag, which triggers eval() on the supplied string during parsing. This flaw effectively grants full Node.js runtime authority over any process that edits its YAML, enabling file read/write, environment manipulation, network connections, and spawning subprocesses. No safe-mode or opt-out mechanism exists, so any untrusted input processed with this library risks critical system compromise.

Affected Systems

Based on the description, it is inferred that the vulnerability affects the cgauge:@cgauge/yaml package, used in any Node.js application that imports this npm module regardless of version because the issue resides in the core YAML parser logic. No specific version range is provided, so all released iterations are potentially exposed until a fixed version is rolled out. Systems that rely on this package to parse external YAML—from configuration files to third‑party data—are at risk.

Risk and Exploitability

Based on the description, the likely attack vector is the injection of a crafted YAML document containing a !js tag, which triggers eval() in the victim's Node.js environment. The CVSS score of 8.4 indicates high severity, and while an EPSS value is unavailable, the absence of a KEV listing suggests no confirmed widespread exploitation yet. Since the flaw is trivial to trigger via any input source, the likelihood of exploitation remains significant in environments that ingest user‑controlled YAML.

Generated by OpenCVE AI on August 20, 2026 at 22:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the @cgauge/yaml package to the latest patched release or replace it with a maintained alternative that does not evaluate !js tags.
  • If an upgrade is not possible, remove or disable the !js tag construct within the parser to prevent eval() from being invoked on untrusted content.
  • Implement strict input validation so that only trusted, signed YAML data is processed, and consider sandboxing or containerizing the application to limit the impact of any potential code execution.

Generated by OpenCVE AI on August 20, 2026 at 22:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 21 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
First Time appeared Cgauge
Cgauge yaml
Vendors & Products Cgauge
Cgauge yaml

Thu, 20 Aug 2026 14:00:00 +0000

Type Values Removed Values Added
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.
Title @cgauge/yaml npm Package Arbitrary Code Execution via eval() YAML Tag
Weaknesses CWE-95
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.4, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-20T14:29:17.384Z

Reserved: 2026-08-19T20:34:00.154Z

Link: CVE-2026-76833

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-20T14:18:00.137

Modified: 2026-08-20T15:18:38.567

Link: CVE-2026-76833

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-21T12:09:21Z

Weaknesses
  • CWE-95

    Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')