Resource Exhaustion Affecting semgrep package, versions <1.160.0-r1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.02% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Resource Exhaustion vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CHAINGUARDLATEST-SEMGREP-16101064
  • published18 Apr 2026
  • disclosed18 Apr 2026

Introduced: 18 Apr 2026

NewCVE-2026-40347  (opens in a new tab)
CWE-400  (opens in a new tab)
CWE-834  (opens in a new tab)

How to fix?

Upgrade Chainguard semgrep to version 1.160.0-r1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream semgrep package and not the semgrep package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

Python-Multipart is a streaming multipart parser for Python. Versions prior to 0.0.26 have a denial of service vulnerability when parsing crafted multipart/form-data requests with large preamble or epilogue sections. Upgrade to version 0.0.26 or later, which skips ahead to the next boundary candidate when processing leading CR/LF data and immediately discards epilogue data after the closing boundary.

CVSS Base Scores

version 3.1