GHSA-4www-5p9h-95mh

Suggest an improvement
Source
https://github.com/advisories/GHSA-4www-5p9h-95mh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-4www-5p9h-95mh/GHSA-4www-5p9h-95mh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-4www-5p9h-95mh
Aliases
Published
2025-04-15T03:30:34Z
Modified
2025-04-28T14:27:14Z
Severity
  • 4.0 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:N/I:N/A:L CVSS Calculator
Summary
http-proxy-middleware can call writeBody twice because "else if" is not used
Details

In http-proxy-middleware before 2.0.8 and 3.x before 3.0.4, writeBody can be called twice because "else if" is not used.

Database specific
{
    "nvd_published_at": "2025-04-15T03:15:18Z",
    "cwe_ids": [
        "CWE-670"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2025-04-16T15:23:58Z"
}
References

Affected packages

npm / http-proxy-middleware

Package

Name
http-proxy-middleware
View open source insights on deps.dev
Purl
pkg:npm/http-proxy-middleware

Affected ranges

Type
SEMVER
Events
Introduced
1.3.0
Fixed
2.0.8

npm / http-proxy-middleware

Package

Name
http-proxy-middleware
View open source insights on deps.dev
Purl
pkg:npm/http-proxy-middleware

Affected ranges

Type
SEMVER
Events
Introduced
3.0.0
Fixed
3.0.4