CVE-2023-42282
NPM IP package incorrectly identifies some private IP addresses as public
9.8
CRITICAL
CVSS 3.1
EPSS 0.65%
Description
The `isPublic()` function in the NPM package `ip` doesn't correctly identify certain private IP addresses in uncommon formats such as `0x7F.1` as private. Instead, it reports them as public by returning `true`. This can lead to security issues such as Server-Side Request Forgery (SSRF) if `isPublic()` is used to protect sensitive code paths when passed user input. Versions 1.1.9 and 2.0.1 fix the issue.
How to fix CVE-2023-42282
To remediate CVE-2023-42282, upgrade the affected package to a fixed version below.
- —no fix listed
- —upgrade to 2.0.1 or later
Is CVE-2023-42282 being exploited?
Low — EPSS is 0.7%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0
- >= 2.0.0, < 2.0.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |