CVE-2022-25881
JSON

5.3medium

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

Severity
5.3medium CVSS:3.1 by snyk
Exploit likelihood
1.72% (higher than 78% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
snyk
Also known as
GHSA-rc47-6667-2j5j

Description

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.

Affected

Product or packageVersionsReported by
http-cache-semanticsbefore 4.1.1CVE List
org.webjars.npm:http-cache-semanticsbefore 4.1.1CVE List
http-cache-semantics (npm)before 4.1.1GitHub Advisory Database
org.webjars.npm:http-cache-semantics (Maven)before 4.1.1GitHub Advisory Database
http-cache-semantics_project http-cache-semanticsbefore 4.1.1NVD

All scores

snyk5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-1333

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

Esto afecta a las versiones del paquete http-cache-semantics anteriores a la 4.1.1. El problema se puede explotar mediante valores de encabezado de solicitud maliciosos enviados a un servidor, cuando ese servidor lee la política de caché de la solicitud utilizando esta librería.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-25881 changed 2025-03-27CVE Terms of Use
GitHub Advisory DatabaseGHSA-rc47-6667-2j5j changed 2026-09-10CC-BY-4.0
NVDCVE-2022-25881 changed 2026-06-17Public domain