js-toml: Uncontrolled recursion in `load()` causes `RangeError` (stack exhaustion) on deeply nested input
js-toml is a TOML parser for JavaScript. Prior to 1.1.3, load() does not bound nesting or dotted-key depth in the recursive parser at src/load/parser.ts or the interpreter at src/load/interpreter.ts, so deeply nested arrays, deeply nested inline tables, or long dotted keys can exhaust the V8 call stack and throw a raw RangeError instead of the documented SyntaxParseError. Applications that parse attacker-controlled TOML and handle only SyntaxParseError can rethrow the unexpected exception, which can terminate a worker or process and cause denial of service. The exception is synchronous and catchable by consumers that handle all exceptions, and the issue does not affect confidentiality or integrity. This issue is fixed in version 1.1.3.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2026-63386
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 15:49 UTC · Revision 1
Source evidence
js-toml: Uncontrolled recursion in `load()` causes `RangeError` (stack exhaustion) on deeply nested input
core-osv · Original sourcePublished 22 Sept 2026, 19:00 UTC
js-toml is a TOML parser for JavaScript. Prior to 1.1.3, load() does not bound nesting or dotted-key depth in the recursive parser at src/load/parser.ts or the interpreter at src/load/interpreter.ts, so deeply nested arrays, deeply nested inline tables, or long dotted keys can exhaust the V8 call stack and throw a raw RangeError instead of the documented SyntaxParseError. Applications that parse attacker-controlled TOML and handle only SyntaxParseError can rethrow the unexpected exception, which can terminate a worker or process and cause denial of service. The exception is synchronous and catchable by consumers that handle all exceptions, and the issue does not affect confidentiality or integrity. This issue is fixed in version 1.1.3.
osv:CVE-2026-63386
Complete source record
{
"id": "f3c389a7b7ac14f8a3a88e02b464fa3c707187455263f6a3139b27ea5e880557",
"url": "https://osv.dev/vulnerability/CVE-2026-63386",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "js-toml: Uncontrolled recursion in `load()` causes `RangeError` (stack exhaustion) on deeply nested input",
"summary": "js-toml is a TOML parser for JavaScript. Prior to 1.1.3, load() does not bound nesting or dotted-key depth in the recursive parser at src/load/parser.ts or the interpreter at src/load/interpreter.ts, so deeply nested arrays, deeply nested inline tables, or long dotted keys can exhaust the V8 call stack and throw a raw RangeError instead of the documented SyntaxParseError. Applications that parse attacker-controlled TOML and handle only SyntaxParseError can rethrow the unexpected exception, which can terminate a worker or process and cause denial of service. The exception is synchronous and catchable by consumers that handle all exceptions, and the issue does not affect confidentiality or integrity. This issue is fixed in version 1.1.3.",
"evidence": "osv:CVE-2026-63386",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2026-63386",
"aliases": [
"CVE-2026-63386",
"GHSA-3g82-77xr-68x5"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/sunnyadn/js-toml",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "fcb1fa379a722f006acb464c59b3a371994311f9"
},
{
"fixed": "4e10acf1f99ff3cb443c58b8f0a57664e41e87c6"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "1.1.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "4e10acf1f99ff3cb443c58b8f0a57664e41e87c6"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "fcb1fa379a722f006acb464c59b3a371994311f9"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v1.1.3"
}
]
}
}
],
"versions": [
"v1.1.2",
"v1.1.1",
"v1.1.0",
"v1.0.3",
"v1.0.2",
"v1.0.1",
"v1.0.0",
"v0.1.1",
"v0.1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-63386.json"
}
}
],
"modified": "2026-10-28T02:30:37.036542677Z",
"provider": "osv",
"references": [
"https://github.com/sunnyadn/js-toml/releases/tag/v1.1.3",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63386.json",
"https://github.com/sunnyadn/js-toml/security/advisories/GHSA-3g82-77xr-68x5",
"https://nvd.nist.gov/vuln/detail/CVE-2026-63386",
"https://github.com/sunnyadn/js-toml/commit/4e10acf1f99ff3cb443c58b8f0a57664e41e87c6"
],
"provider_metadata": {
"cwe_ids": [
"CWE-674"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63386.json"
}
},
"related_cves": [
{
"value": "CVE-2026-63386",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504288,
"published_at": "2026-09-22T19:00:19.734+00:00"
}