Packages / http-cache-semantics / Security

HighVulnerabilityGHSA-rc47-6667-2j5jCVE-2022-25881Published 31 Jan 2023

http-cache-semantics vulnerable to Regular Expression Denial of Service

Your version

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.1
Every release on a timeline
4.x
  1. Affected

    4.0.0 – 4.1.0

    6 releases

  2. Fixed

    4.1.1 – 4.3.0

    3 releases, latest

3.x
  1. Affected

    3.0.0 – 3.8.1

    17 releases

2.x
  1. Affected

    2.0.0

    1 release

1.x
  1. Affected

    1.0.0

    1 release

28 stable releases of http-cache-semantics, oldest to newest, one row per major.

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.