Improper Handling of Unexpected Data Type Affecting org.webjars.npm:on-headers package, versions [0,]


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.01% (2nd 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-JAVA-ORGWEBJARSNPM-10773730
  • published18 Jul 2025
  • disclosed17 Jul 2025
  • creditKaung Zin Hein, Sebastian Podjasek

Introduced: 17 Jul 2025

NewCVE-2025-7339  (opens in a new tab)
CWE-241  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Improper Handling of Unexpected Data Type via the response.writeHead function. An attacker can manipulate HTTP response headers by passing an array to this function, potentially leading to unintended disclosure or modification of header information.

Workaround

This vulnerability can be mitigated by passing an object to response.writeHead() instead of an array.

CVSS Base Scores

version 4.0
version 3.1