CVE-2026-12590

Source
https://cve.org/CVERecord?id=CVE-2026-12590
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-12590.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-12590
Aliases
Downstream
Related
Published
2026-07-09T10:21:10.447Z
Modified
2026-07-21T20:59:33.178546010Z
Severity
  • 3.7 (Low) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L CVSS Calculator
Summary
body-parser vulnerable to denial of service when invalid limit value silently disables size enforcement
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-770"
    ],
    "cna_assigner": "openjs",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/12xxx/CVE-2026-12590.json"
}
References

Affected packages

Git / github.com/expressjs/body-parser

Affected ranges

Type
GIT
Repo
https://github.com/expressjs/body-parser
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
Fixed
Database specific
{
    "source": "CPE_RANGE",
    "cpe": "cpe:2.3:a:openjsf:body-parser:*:*:*:*:*:node.js:*:*",
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "1.20.6"
        },
        {
            "introduced": "2.0.0"
        },
        {
            "fixed": "2.3.0"
        }
    ]
}

Affected versions

1.*
1.0.0
1.0.1
1.0.2
1.1.0
1.1.1
1.1.2
1.10.0
1.10.1
1.10.2
1.11.0
1.12.0
1.12.1
1.12.2
1.12.3
1.12.4
1.13.0
1.13.1
1.13.2
1.13.3
1.14.0
1.14.1
1.14.2
1.15.0
1.15.1
1.15.2
1.16.0
1.16.1
1.17.0
1.17.1
1.17.2
1.18.0
1.18.1
1.18.2
1.18.3
1.19.0
1.19.1
1.19.2
1.2.0
1.2.1
1.2.2
1.20.0
1.20.1
1.20.2
1.20.3
1.20.4
1.20.5
1.3.0
1.3.1
1.4.0
1.4.1
1.4.2
1.4.3
1.5.0
1.5.1
1.5.2
1.6.0
1.6.1
1.6.2
1.6.3
1.6.4
1.6.5
1.6.6
1.6.7
1.7.0
1.8.0
1.8.1
1.8.2
1.8.3
1.8.4
1.9.0
1.9.1
1.9.2
1.9.3
2.*
2.0.0
2.0.1
v2.*
v2.1.0
v2.2.0
v2.2.1
v2.2.2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-12590.json"