CVE-2026-12590
body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
Impact: In body-parser versions prior to 1.20.6 (1.x line) and 2.3.0 (2.x line), when the parser is configured with an invalid limit option value such as an unparseable string or NaN, bytes.parse returns null and the request body size check is silently skipped. Applications that rely on limit as their primary safeguard against oversized request bodies will accept arbitrarily large payloads, leading to excessive memory and CPU usage and denial of service. Patches: This issue is fixed in body-parser 1.20.6 and 2.3.0. After the fix, invalid limit values throw a clear error at parser construction time instead of silently disabling enforcement, while null and undefined continue to fall back to the default limit of 100kb. Workarounds: Validate the limit value before passing it to body-parser. For example, parse the value at startup and reject any configuration where the result is null or a non-finite number.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 0.412% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T17:59:58.648Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 3.7 · published by openjsCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L
Assessment source · checked 2026-11-19T12:58:05.200Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T17:59:58.648Z | CISA KEV |
| cvss | verified | 2026-11-19T12:58:05.200Z | CVE Program |
| epss | verified | 2026-11-19T18:27:16.248Z | FIRST EPSS |
| patches | verified | 2026-11-19T12:52:30.847Z | OSV |
| affected | verified | 2026-11-19T12:58:05.200Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:58:05.200Z | CVE Program |
Affected versions and configuration
body-parser body-parser; default status: unaffected: 0 to < 1.20.6 [affected; scheme: semver]; 1.20.6 [unaffected; scheme: semver]; 2.0.0 to < 2.3.0 [affected; scheme: semver]; 2.3.0 [unaffected; scheme: semver]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "body-parser",
"product": "body-parser",
"versions": [
{
"status": "affected",
"version": "0",
"lessThan": "1.20.6",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "1.20.6",
"versionType": "semver"
},
{
"status": "affected",
"version": "2.0.0",
"lessThan": "2.3.0",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "2.3.0",
"versionType": "semver"
}
],
"packageURL": "pkg:npm/body-parser",
"defaultStatus": "unaffected"
}
],
"additionalContainers": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2026-12590",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-07-09T12:05:36.853756Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2026-07-09T12:06:01.554Z"
}
}
]
}Archived source JSONOSV · osv · full conditions
{
"id": "GHSA-v422-hmwv-36x6",
"aliases": [
"CVE-2026-12590"
],
"affected": [
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.20.6"
}
]
}
],
"package": {
"name": "body-parser",
"purl": "pkg:npm/body-parser",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-v422-hmwv-36x6/GHSA-v422-hmwv-36x6.json"
}
},
{
"ranges": [
{
"type": "SEMVER",
"events": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.3.0"
}
]
}
],
"package": {
"name": "body-parser",
"purl": "pkg:npm/body-parser",
"ecosystem": "npm"
},
"versions": [],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/07/GHSA-v422-hmwv-36x6/GHSA-v422-hmwv-36x6.json"
}
}
],
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L"
}
],
"upstream": [],
"withdrawn": null,
"references": [
{
"url": "https://github.com/expressjs/body-parser/security/advisories/GHSA-v422-hmwv-36x6",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-12590",
"type": "ADVISORY"
},
{
"url": "https://github.com/expressjs/body-parser/pull/698",
"type": "WEB"
},
{
"url": "https://github.com/expressjs/body-parser/pull/741",
"type": "WEB"
},
{
"url": "https://github.com/expressjs/body-parser/commit/2322e111cc321413ec2b7b76d01be533d3de9d7d",
"type": "WEB"
},
{
"url": "https://github.com/expressjs/body-parser/commit/3492672eee593d5c158f239b6e9115498a5dbeac",
"type": "WEB"
},
{
"url": "https://cna.openjsf.org/security-advisories.html",
"type": "WEB"
},
{
"url": "https://github.com/expressjs/body-parser",
"type": "PACKAGE"
},
{
"url": "https://github.com/expressjs/body-parser/releases/tag/1.20.6",
"type": "WEB"
},
{
"url": "https://github.com/expressjs/body-parser/releases/tag/v2.3.0",
"type": "WEB"
}
],
"relatedGitRanges": [],
"database_specific": {
"cwe_ids": [
"CWE-770"
],
"severity": "LOW",
"github_reviewed": true,
"nvd_published_at": "2026-07-09T11:16:24Z",
"github_reviewed_at": "2026-07-20T23:23:26Z"
}
}Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
| Evidence type | Distribution / release | Package | Channel | Version or source note | Source |
|---|---|---|---|---|---|
| ecosystem-boundary | npm / package | body-parser | Not a distribution channel | 1.20.6 | Official record |
| ecosystem-boundary | npm / package | body-parser | Not a distribution channel | 2.3.0 | Official record |
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- OSVConsulted: 2026-11-19T12:52:30.847ZArchived source JSON
Source publication: 2026-07-20T23:23:26.000Z
Source modification: 2026-09-10T03:50:53.014ZDocument fingerprint
bdd1d5ee49406f535f40d01684fc5d26b9d98bcdbdd625e3015ef43e8f9b4ae2 - CVE ProgramConsulted: 2026-11-19T12:58:05.200ZArchived source JSON
Source publication: 2026-07-09T10:21:10.447Z
Source modification: 2026-07-09T12:06:01.554ZDocument fingerprint
2adfd89f1ee2ceb8b3e5971b92a70e90940bcab20e513515fb55bb29a251fb84 - FIRST EPSSConsulted: 2026-11-19T18:27:16.248ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
dcae036316c84a2e307bf909d472719ee9beccd4f1721e7a1d03e98a47f2acff - CISA KEVConsulted: 2026-11-19T17:59:58.648ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56
Official status history
- UNKNOWN → PUBLISHED · · evidence