CVE-2023-42282: SSRF

Published Feb 8, 2024
·
Updated

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.

https://cosmosofcyberspace.github.io/npmipcve/npmipcve.html https://github.com/indutny/node-ip

Other sources

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.

GitHub

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.

Ubuntu

Affected Software

14 affected componentsFixes available
debian/node-ip<=1.1.5-3, <=1.1.5-5, <=2.0.0+~1.1.0-1
ubuntu/node-ip<1.1.5-1ubuntu0.1~
1.1.5-1ubuntu0.1~
ubuntu/node-ip<1.1.5-5ubuntu0.1~
1.1.5-5ubuntu0.1~
ubuntu/node-ip<1.1.5+~1.1.0-1ubuntu0.1~
1.1.5+~1.1.0-1ubuntu0.1~
ubuntu/node-ip<2.0.0+~1.1.0-1ubuntu0.1
2.0.0+~1.1.0-1ubuntu0.1
ubuntu/node-ip<1.1.9, <2.0.1
1.1.92.0.1
npm/ip<1.1.9
1.1.9
npm/ip=2.0.0
2.0.1
Fedorindutny Ip Node.js<=1.1.8
Fedorindutny Ip Node.js=2.0.0
Fedorindutny Ip Node.js<1.1.9
redhat/nodejs-ip<1.1.9
1.1.9
redhat/nodejs-ip<2.0.1
2.0.1
IBM Edge Application Manager<=4.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/node-ip to a version that resolves this vulnerability.

    Fixed in 1.1.5-1ubuntu0.1~
  2. Upgrade

    Upgrade ubuntu/node-ip to a version that resolves this vulnerability.

    Fixed in 1.1.5-5ubuntu0.1~
  3. Upgrade

    Upgrade ubuntu/node-ip to a version that resolves this vulnerability.

    Fixed in 1.1.5+~1.1.0-1ubuntu0.1~
  4. Upgrade

    Upgrade ubuntu/node-ip to a version that resolves this vulnerability.

    Fixed in 2.0.0+~1.1.0-1ubuntu0.1
  5. Upgrade

    Upgrade ubuntu/node-ip to a version that resolves this vulnerability.

    Fixed in 1.1.9Fixed in 2.0.1
  6. Upgrade

    Upgrade npm/ip to a version that resolves this vulnerability.

    Fixed in 1.1.9
  7. Upgrade

    Upgrade npm/ip to a version that resolves this vulnerability.

    Fixed in 2.0.1
  8. Upgrade

    Upgrade redhat/nodejs-ip to a version that resolves this vulnerability.

    Fixed in 1.1.9
  9. Upgrade

    Upgrade redhat/nodejs-ip to a version that resolves this vulnerability.

    Fixed in 2.0.1

Event History

Feb 8, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Advisory Published
via GitHub·06:30 PM
Feb 20, 2024
Data Sourced
via Red Hat·06:38 PM
DescriptionSeverityAffected Software
Mar 30, 2024
Data Sourced
via Launchpad·05:59 PM
Description
Jun 30, 2024
News Published
via BleepingComputer·02:31 PM
News Published
via BleepingComputer·02:32 PM
Aug 13, 2024
News Published
via BleepingComputer·09:43 PM
Aug 20, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-42282?

CVE-2023-42282 is classified as a high-severity vulnerability due to its potential to execute arbitrary code and access sensitive information.

2

How do I fix CVE-2023-42282?

To mitigate CVE-2023-42282, upgrade to node-ip version 1.1.9 or higher, or 2.0.1 for upstream packages.

3

Which software packages are affected by CVE-2023-42282?

CVE-2023-42282 affects the NPM IP package versions 1.1.8 and below, as well as various versions of node-ip on Debian and Ubuntu systems.

4

What specific function in the NPM IP Package is vulnerable in CVE-2023-42282?

The isPublic() function in the NPM IP Package is the specific point of vulnerability in CVE-2023-42282.

5

Are there any notable products impacted by CVE-2023-42282?

Yes, IBM Cognos Analytics versions up to 12.0.3 and 11.2.4 FP3 are impacted by CVE-2023-42282.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203