Advisory

GHSA-r6ch-mqf9-qc9w

Also known as: CVE-2023-24807

Summary

Regular Expression Denial of Service in Headers

Details

Impact
The Headers.set() and Headers.append() methods are vulnerable to Regular Expression Denial of Service (ReDoS) attacks when untrusted values are passed into the functions. This is due to the inefficient regular expression used to normalize the values in the headerValueNormalize() utility function.

Patches

This vulnerability was patched in v5.19.1.

Workarounds
There is no workaround. Please update to an unaffected version.

References

  • https://hackerone.com/bugs?report_id=1784449

Credits

Carter Snook reported this vulnerability.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-02-16 20:46 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

undici

npm · All systems

Affected

  • introduced 0, fixed 5.19.1 (semver)

Fixed versions

5.19.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences