Skip to main content

js-toml EUVDEUVD-2026-38060

| CVE-2026-49293 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-06-19 GitHub_M GHSA-wp3c-266w-4qfq
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify TOML ingestion endpoint
  2. Delivery
    Craft document with ~500KB hex literal
  3. Exploit
    Submit via HTTP/CI/upload
  4. Install
    Trigger O(n²) parseBigInt loop
  5. C2
    Pin Node.js event loop ~40s
  6. Execute
    Repeat to exhaust workers
  7. Impact
    Service-wide denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target application must call js-toml's load() function on attacker-influenced TOML input - typical exposures are HTTP endpoints that accept TOML configuration uploads, CI/CD systems ingesting third-party *.toml from repositories or artifacts, IDE plugins parsing project files, and build tools consuming dependency manifests. No authentication is required when the upload/ingestion path is unauthenticated (AV:N/PR:N), and no user interaction is needed beyond delivering the malicious document. Exploitation is limited to versions ≤1.1.0 of js-toml, and impact is constrained to availability (CPU exhaustion of the Node.js event loop) - no code execution, data disclosure, or integrity impact. Severity per request scales with literal length: doubling the literal quadruples CPU time, so realistic DoS requires a multi-hundred-KB literal per request or sustained concurrent requests.

Impact

CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5 High) accurately reflects a network-reachable, unauthenticated, single-request availability-only impact in deployments that feed untrusted TOML into js-toml. No EPSS, KEV, or POC data was provided, so this is no public exploit identified at time of analysis; however, the published patch diff plus security tests in test/security.ts effectively demonstrate the exploitable input (e.g. x = 0x followed by 50,000 f characters), lowering the barrier to weaponization. Real-world priority is moderate-to-high for any backend service, CI/CD ingestion path, or IDE/build tool that calls load() on third-party TOML over a network boundary; for libraries used only on trusted local config the practical risk drops significantly. CVSS network vector assumes the caller exposes TOML parsing to the network - verify your own deployment posture before treating this as 7.5 across the board.

Exploit ScenarioDerived

An attacker submits a single TOML configuration file (e.g. via a SaaS configuration upload endpoint, webhook, or CI/CD job processing an untrusted repository's *.toml) containing a payload like x = 0x followed by ~500,000 hex characters. The vulnerable js-toml parser invokes load(), entering the O(n²) parseBigInt loop and pinning one Node.js event loop for tens of seconds per request; repeated requests trivially exhaust all worker threads. The patched test 'f'.repeat(50_000) in test/security.ts effectively serves as a public proof-of-concept.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 19, 2026

Denial of service in js-toml versions up to and including 1.1.0 allows remote attackers to exhaust CPU resources by submitting a single TOML document containing an oversized hexadecimal, octal, or binary integer literal. The hand-written parseBigInt loop exhibits O(n²) complexity, and a ~500 kB literal pins one CPU core for ~40 seconds; no public exploit identified at time of analysis, but the patched commit and test suite serve as a clear blueprint. Applies to any service invoking load() on attacker-controlled TOML, such as configuration upload endpoints, CI/CD pipelines, IDE plugins, and build tools.

RemediationAI

Vendor-released patch: upgrade js-toml to 1.1.1 or later (https://github.com/sunnyadn/js-toml/releases/tag/v1.1.1), which introduces a 1000-digit cap on radix-prefixed integer literals and replaces the quadratic parseBigInt loop with the native BigInt constructor (commit 1abcb31dc7b1fa88e4c848a8d108891cfbb96fa2). If immediate upgrade is not possible, applications calling load() on untrusted input should reject TOML documents above a conservative size threshold (e.g. tens of kilobytes) at the HTTP/upload layer before parsing, or pre-scan input with a regex rejecting 0x/0o/0b literals longer than ~1000 digits - note that body-size limits alone may impair legitimate large configuration files. Running load() in a worker thread with a wall-clock timeout contains the blast radius to a single core but does not eliminate amplification under concurrent requests.

Affected VersionsENISA

js-toml < 1.1.1

Affected Packages

npm js-toml fix: 1.1.1, 1.1.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

js-toml is a JavaScript TOML 1.0.0-compliant parser (cpe:2.3:a:sunnyadn:js-toml). The flaw is a classic CWE-400 Uncontrolled Resource Consumption: the NonDecimalInteger token interpreter parsed 0x/0o/0b literals by repeatedly executing result = result * BigInt(radix) + BigInt(digit), and because JavaScript BigInt multiplication cost scales with operand size, the accumulator grows linearly with digits consumed, yielding total O(n²) work. The lexer regex imposed no upper bound on literal length, so a single ~500 kB hex literal triggers ~40 seconds of synchronous CPU on Node v22 on an Apple M-series chip, blocking the event loop. The fix in commit 1abcb31 switches to the V8-native BigInt(prefixedString) constructor (O(n)) and additionally caps radix literal length to 1000 digits - matching jackson-core's StreamReadConstraints.maxNumberLength default - throwing SyntaxParseError beyond that bound.

Know when Js Toml gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Single attacker-controlled TOML document parsed by an unauthenticated network-reachable caller (AV:N/AC:L/PR:N/UI:N) causes CPU exhaustion only (C:N/I:N/A:H).

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Jun 19, 2026 - 21:02 EUVD
CVE Published
Jun 19, 2026 - 18:14 cve.org
HIGH 7.5

DescriptionCVE.org

js-toml is a TOML parser for JavaScript, fully compliant with the TOML 1.0.0 Spec. Versions up to and including 1.1.0 parse hexadecimal / octal / binary integer literals via a hand-written parseBigInt loop that multiplies a BigInt accumulator by the radix once per input digit. Each iteration performs a BigInt * BigInt operation on an accumulator that grows linearly with the number of digits already consumed, so the whole loop is O(n²) in the literal length. The lexer regex places no upper bound on the literal length, so a single TOML document containing one ~500 kB hex literal pins one CPU core for ~40 seconds on a modern laptop (Apple M-series, Node v22). Memory amplification is bounded but CPU amplification is severe and grows quadratically: doubling the literal length quadruples the work. A caller that invokes load() on attacker-controlled TOML (configuration upload endpoints, CI/CD systems ingesting third-party *.toml, IDE plugins, build tools) is exposed to a single-request CPU exhaustion DoS. Version 1.1.1 fixes the issue.

Executive ViewAI

Why It Matters

js-toml library versions through 1.1.0 contain a denial-of-service flaw enabling attackers to exhaust CPU resources through a single oversized TOML document. Services handling untrusted TOML input-particularly CI/CD systems, configuration management, and build infrastructure-face operational disruption risk with no available patch.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Enforce strict TOML file size limits (<100 kB); (2) Implement per-operation parsing timeouts (5 seconds maximum); (3) Add authentication and rate-limiting to TOML upload endpoints; (4) Monitor for CPU consumption anomalies during TOML parsing; (5) Temporarily disable TOML parsing if risk is unacceptable pending remediation.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy