Skip to content

Conversation

@debricked
Copy link

@debricked debricked bot commented May 25, 2025

CVE–2023–42282

Vulnerability details

Description

Server-Side Request Forgery (SSRF)

The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.

NVD

The ip package before 1.1.9 for Node.js might allow SSRF because some IP addresses (such as 0x7f.1) are improperly categorized as globally routable via isPublic.

GitHub

NPM IP package incorrectly identifies some private IP addresses as public

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.

GitLab Advisory Database (Open Source Edition)

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

An issue in NPM IP Package v.1.1.8 and before allows an attacker to execute arbitrary code and obtain sensitive information via the isPublic() function.

CVSS details - 9.8

 

CVSS3 metrics
Attack Vector Network
Attack Complexity Low
Privileges Required None
User interaction None
Scope Unchanged
Confidentiality High
Integrity High
Availability High
References

    CVE-2023-42282 NPM Vulnerability in NetApp Products | NetApp Product Security
    npm/ip/CVE-2023-42282.yml · main · GitLab.org / GitLab Advisory Database Open Source Edition · GitLab
    Missing IP Address Control in isPublic() Function Leads to SSRF Bypass PoC
    NVD - CVE-2023-42282
    lib: fixed CVE-2023-42282 and added unit test ?? indutny/node-ip@6a3ada9 ?? GitHub
    huntr - The world’s first bug bounty platform for AI/ML
    [GHSA-78xj-cgh5-2h22] NPM IP package vulnerable to Server-Side Request Forgery (SSRF) attacks by G-Rath · Pull Request #3504 · github/advisory-database · GitHub
    CVE-2023-42282 by Cofgren · Pull Request #138 · indutny/node-ip · GitHub
    lib: fixed CVE-2023-42282 and added unit test ?? indutny/node-ip@32f468f ?? GitHub
    Socks package depends on vulnerable package ip · Issue #93 · JoshGlazebrook/socks · GitHub
    NPM IP package incorrectly identifies some private IP addresses as public ?? CVE-2023-42282 ?? GitHub Advisory Database ?? GitHub
    Dev rejects CVE severity, makes his GitHub repo read-only

 

Related information

📌 Remember! Check the changes to ensure they don't introduce any breaking changes.
📚 Read more about the CVE

 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant