Vulnerability in js-toml
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as CVE-2026-63386 has been found in js-toml.
Risk of unauthorized operations or information disclosure. CVSS score: 5.3/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "js-toml CVE-2026-63386" on the vendor's site.
CVE-2026-63386 (js-toml) — CWE-674 / CVSS v3 5.3
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (CWE-674) exists in js-toml.
Check the vendor advisory for the affected versions of js-toml.
Severity: Medium (CVSS 5.3/10). Risk of unauthorized operations or information disclosure.
Update to the patched release per vendor advisory.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'js-toml' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'js-toml' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
js-tomlを grep し、稼働しているサービス・バージョンを把握する。 -
2
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| npmjs-toml |
< 1.1.3→ 1.1.3 |
1.1.3 |
Original description The description as published by the source.
Summary
load() parses untrusted TOML using a recursive-descent parser (Chevrotain) and a
recursive tree-walking interpreter. Neither the parser nor the interpreter enforces a
maximum nesting / key depth. A small, attacker-controlled document with deep nesting
(arrays, inline tables) or a long dotted key drives recursion past the V8 call-stack
limit, and load() throws an uncaught RangeError: Maximum call stack size exceeded.
This is a problem for two reasons:
-
Denial of Service. A tiny payload (≈2 KB) reliably aborts parsing. In any
service that parses user-supplied TOML, an unhandledRangeErrorcan crash the
worker/process (500 / restart loop). -
Error-contract violation. The library signals invalid input via
SyntaxParseError(seesrc/load/exception.ts; the entire test suite asserts
SyntaxParseError). Consumers that follow this contract —try { load(input); } catch (e) { if (e instanceof SyntaxParseError) return badRequest(); throw e; // unexpected -> propagates }— will re-throw the
RangeErrorinstead of treating the input as malformed,
turning malformed input into an unexpected fatal error.
Impact
- Unauthenticated attacker who can supply a TOML string to an application using
js-tomlcan forceload()to throw a non-SyntaxParseErrorerror. - If the error is not caught by a generic handler, the Node.js process terminates
(availability impact). - Even when caught gene…
Source: NIST National Vulnerability Database NVD GitHub Advisory
References
- advisory github.com
- package github.com
- web github.com
- web github.com
- web github.com
- web nvd.nist.gov
- web github.com