Unchecked Return Value Affecting spiderlabs/modsecurity package, versions [,2.9.12)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.05% (16th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-SPIDERLABSMODSECURITY-11958961
  • published18 Aug 2025
  • disclosed6 Aug 2025
  • creditUnknown

Introduced: 6 Aug 2025

NewCVE-2025-54571  (opens in a new tab)
CWE-252  (opens in a new tab)

How to fix?

Upgrade spiderlabs/modsecurity to version 2.9.12 or higher.

Overview

Affected versions of this package are vulnerable to Unchecked Return Value via improper handling of HTTP response Content-Type headers. An attacker can execute arbitrary scripts in the context of the victim's browser or disclose sensitive source code by manipulating the Content-Type of HTTP responses.

CVSS Base Scores

version 4.0
version 3.1