CVE-2023-42282
JavaScript vulnerability analysis and mitigation

Overview

The ip package before version 1.1.9 for Node.js contains a vulnerability identified as CVE-2023-42282, discovered in late 2022. The vulnerability affects the package's isPublic() function, which incorrectly categorizes certain IP addresses (such as 0x7f.1) as globally routable when they are actually private addresses. This package, being one of the most popular IP address parsing utilities with 17 million weekly downloads on npmjs.com, has significant reach across the Node.js ecosystem (Bleeping Computer).

Technical details

The vulnerability stems from the ip.isPublic() function's inability to correctly interpret and classify non-standard IP address formats. Specifically, the function fails to recognize hexadecimal representations of private IP addresses, such as '0x7f.1' (which represents 127.1), incorrectly identifying them as public IP addresses. The vulnerability has been assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The vulnerability could potentially lead to Server-Side Request Forgery (SSRF) attacks when applications rely solely on the package's isPublic() function to validate IP addresses. This could result in unauthorized access to internal network resources, disclosure of sensitive information, addition or modification of data, or Denial of Service (DoS) (NetApp Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 1.1.9 of the ip package. Users are advised to upgrade to this version or later to address the vulnerability. The fix includes proper handling of non-standard IP address formats in the isPublic() function (NVD).

Community reactions

The vulnerability has sparked significant discussion in the developer community, particularly regarding the severity rating. The project's maintainer, Fedor Indutny, ultimately archived the GitHub repository, making it read-only, due to the constant stream of messages about the CVE. This incident has contributed to a broader discussion about the CVE system and its impact on open-source maintainers (Bleeping Computer).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management