Packages / http-cache-semantics / Security
http-cache-semantics vulnerable to Regular Expression Denial of Service
Affected releases · http-cache-semantics
- 4.x4.0.0 – 4.1.0Fixed in 4.1.1
- 3.x and older1.0.0 – 3.8.1No fix, no longer updated
On 4.x, the newest line:
npm install http-cache-semantics@4.1.1Every release on a timeline
Affected
4.0.0 – 4.1.0
6 releases
Fixed
4.1.1 – 4.3.0
3 releases, latest
Affected
3.0.0 – 3.8.1
17 releases
Affected
2.0.0
1 release
Affected
1.0.0
1 release
What happens
http-cache semantics contains an Inefficient Regular Expression Complexity , leading to Denial of Service. This affects versions of the package http-cache-semantics before 4.1.1. The issue can be exploited via malicious request header values sent to a server, when that server reads the cache policy from the request using this library.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.