Skip to content

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

High severity GitHub Reviewed Published Jan 31, 2023 to the GitHub Advisory Database • Updated Jun 22, 2023

Package

npm http-cache-semantics (npm)

Affected versions

< 4.1.1

Patched versions

4.1.1
maven org.webjars.npm:http-cache-semantics (Maven)
< 4.1.1
4.1.1

Description

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.

References

Published by the National Vulnerability Database Jan 31, 2023
Published to the GitHub Advisory Database Jan 31, 2023
Reviewed Feb 1, 2023
Last updated Jun 22, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Weaknesses

CVE ID

CVE-2022-25881

GHSA ID

GHSA-rc47-6667-2j5j

Credits

Checking history
See something to contribute? Suggest improvements for this vulnerability.