CVE catalog

CVE-2026-12590

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 retu

[CVE catalog]

Severity
Medium · CVSS 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.41% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-body-parsersid2.4.0+~1.19.6-1fixed
Debiannode-body-parserforky2.4.0+~1.19.6-1fixed
Debiannode-body-parsertrixie1.20.3+~1.19.5-3vulnerable
Debiannode-body-parserbookworm1.20.1+~1.19.2-1vulnerable
Cpebody-parserNot reported1.20.6fixed
Cpebody-parserNot reported2.3.0fixed
Npmbody-parserNot reported2.3.0fixed
Npmbody-parserNot reported2.3.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-body-parsersourcesid2.3.0+~1.19.6-1not yet assignedNot reported[1143074]
Debiannode-body-parsersourceforky2.3.0+~1.19.6-1not yet assignedNot reported[1143074]
Debiannode-body-parsersourcetrixie(unfixed)not yet assignedNot reported[1143074]
Debiannode-body-parsersourcebookworm(unfixed)not yet assignedNot reported[1143074]
Cpebody-parsercpeNot reported1.20.6Not reportedNot reportedNot reported
Cpebody-parsercpeNot reported2.3.0Not reportedNot reportedNot reported
Npmbody-parsernpmNot reported2.3.0Not reportedGHSA-V422-HMWV-36X6Not reported
Npmbody-parsernpmNot reported2.3.0Not reportedNot reportedNot reported

[Debian bug #1143074]

Notes

[trixie] node-body-parser: Minor issue [bookworm] node-body-parser: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (2)
    • 1.20.1+~1.19.2-1 · all · bookworm

      Affected

      nvd · node-body-parser · debian · bookworm; nvd · node-body-parser · debian · 12

    • 1.20.1+~1.19.2-1 · all · bookworm

      Affected

      nvd · node-body-parser · debian · bookworm; nvd · node-body-parser · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 1.20.3+~1.19.5-3 · all · trixie

      Affected

      nvd · node-body-parser · debian · 13

    • 1.20.3+~1.19.5-3 · all · trixie

      Affected

      nvd · node-body-parser · debian · 13

Observed:

References