Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hapi/content
  4. ›
  5. CVE-2026-35213

CVE-2026-35213: @hapi/content: Regular Expression Denial of Service (ReDoS) in HTTP header parsing

April 4, 2026 (updated April 24, 2026)

All versions of @hapi/content through 6.0.0 are vulnerable to Regular Expression Denial of Service (ReDoS) via crafted HTTP header values. Three regular expressions used to parse Content-Type and Content-Disposition headers contain patterns susceptible to catastrophic backtracking. This has been fixed in v6.0.1.

References

  • github.com/advisories/GHSA-jg4p-7fhp-p32p
  • github.com/hapijs/content/pull/38
  • github.com/hapijs/content/security/advisories/GHSA-jg4p-7fhp-p32p
  • nvd.nist.gov/vuln/detail/CVE-2026-35213

Code Behaviors & Features

Detect and mitigate CVE-2026-35213 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 6.0.1

Fixed versions

  • 6.0.1

Solution

Upgrade to version 6.0.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/@hapi/content/CVE-2026-35213.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:15 +0000.