UBUNTU-CVE-2026-12590
A vulnerability in node-body-parser versions prior to 1.20.6 (1.x line) and 2.3.0 (2.x line) allows bypassing the request body size limit when configured with an invalid limit value. This causes the parser to skip size checks silently, potentially leading to excessive memory and CPU usage and denial of service. The issue is fixed in versions 1.20.6 and 2.3.0, where invalid limit values cause an error at parser construction. Users should validate limit values before use to mitigate risk.
AI Analysis
Technical Summary
In node-body-parser versions before 1.20.6 (1.x) and 2.3.0 (2.x), if the parser is configured with an invalid limit option (e.g., unparseable string or NaN), the internal bytes.parse function returns null, causing the request body size check to be skipped silently. This allows applications relying on the limit option to accept arbitrarily large payloads, resulting in excessive resource consumption and potential denial of service. The vulnerability is addressed in body-parser 1.20.6 and 2.3.0 by throwing an error on invalid limit values during parser construction, while null or undefined limits fall back to the default 100kb. A workaround is to validate the limit value before passing it to body-parser.
Potential Impact
Applications using affected versions of node-body-parser with an invalid limit configuration may accept arbitrarily large HTTP request bodies, leading to excessive memory and CPU usage and denial of service conditions. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
This vulnerability is fixed in node-body-parser versions 1.20.6 and 2.3.0. Users should upgrade to these or later versions. Additionally, validate the limit option value before passing it to body-parser to ensure it is parseable and finite. Invalid limit values should be rejected at application startup to prevent silent bypass of size checks.
UBUNTU-CVE-2026-12590
Description
A vulnerability in node-body-parser versions prior to 1.20.6 (1.x line) and 2.3.0 (2.x line) allows bypassing the request body size limit when configured with an invalid limit value. This causes the parser to skip size checks silently, potentially leading to excessive memory and CPU usage and denial of service. The issue is fixed in versions 1.20.6 and 2.3.0, where invalid limit values cause an error at parser construction. Users should validate limit values before use to mitigate risk.
CVSS v3.1
Affected software
pkg:deb/ubuntu/[email protected]?arch=source&distro=bionicpkg:deb/ubuntu/[email protected]?arch=source&distro=focalpkg:deb/ubuntu/[email protected]+~1.19.2-1?arch=source&distro=jammypkg:deb/ubuntu/[email protected]+~1.19.5-1build2?arch=source&distro=noblepkg:deb/ubuntu/[email protected]+~1.19.5-3?arch=source&distro=questingpkg:deb/ubuntu/[email protected]+~1.19.6-1?arch=source&distro=resoluteRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
In node-body-parser versions before 1.20.6 (1.x) and 2.3.0 (2.x), if the parser is configured with an invalid limit option (e.g., unparseable string or NaN), the internal bytes.parse function returns null, causing the request body size check to be skipped silently. This allows applications relying on the limit option to accept arbitrarily large payloads, resulting in excessive resource consumption and potential denial of service. The vulnerability is addressed in body-parser 1.20.6 and 2.3.0 by throwing an error on invalid limit values during parser construction, while null or undefined limits fall back to the default 100kb. A workaround is to validate the limit value before passing it to body-parser.
Potential Impact
Applications using affected versions of node-body-parser with an invalid limit configuration may accept arbitrarily large HTTP request bodies, leading to excessive memory and CPU usage and denial of service conditions. There is no impact on confidentiality or integrity, only availability is affected.
Mitigation Recommendations
This vulnerability is fixed in node-body-parser versions 1.20.6 and 2.3.0. Users should upgrade to these or later versions. Additionally, validate the limit option value before passing it to body-parser to ensure it is parseable and finite. Invalid limit values should be rejected at application startup to prevent silent bypass of size checks.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- UBUNTU-CVE-2026-12590
- Osv Schema Version
- 1.7.0
- Aliases
- []
- Ecosystems
- ["Ubuntu:16.04:LTS","Ubuntu:18.04:LTS","Ubuntu:20.04:LTS","Ubuntu:22.04:LTS","Ubuntu:24.04:LTS","Ubuntu:25.10","Ubuntu:26.04:LTS"]
- Database Specific Severity
- null
- Cvss Version
- 3.1
Threat ID: 6a58b4f968715ace43db21fe
Added to database: 07/16/2026, 10:39:53 UTC
Last enriched: 07/16/2026, 14:02:43 UTC
Last updated: 07/16/2026, 14:02:43 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.