Back to Blog
critical SEVERITY5 min read

How Server-Side Request Forgery (SSRF) happens in Node.js IP address parsing and how to fix it

A critical SSRF vulnerability (CVE-2026-69192) was discovered in the ip-address npm package version 10.2.0, which could allow attackers to bypass IP address validation and access internal services. The fix upgrades the dependency to version 10.3.1, which properly handles edge cases in IP address parsing that previously allowed trust-boundary bypasses.

O
By Orbis AppSec
•Published August 7, 2026•Reviewed August 7, 2026

Answer Summary

CVE-2026-69192 is a Server-Side Request Forgery (SSRF) vulnerability in the Node.js `ip-address` npm package (version 10.2.0 and earlier) caused by inconsistent IP address parsing that allows attackers to bypass blocklist validation. This maps to CWE-918 (Server-Side Request Forgery). The fix requires upgrading to ip-address version 10.3.1, which corrects the parsing inconsistencies that enabled trust-boundary bypasses.

Vulnerability at a Glance

cweCWE-918
fixUpgrade ip-address dependency from 10.2.0 to 10.3.1
riskAttackers can bypass IP validation to access internal services and sensitive resources
languageJavaScript (Node.js)
root causeInconsistent IP address parsing allows specially crafted addresses to bypass blocklists
vulnerabilityServer-Side Request Forgery (SSRF) via IP Address Parsing Bypass

Introduction

The backend/routes/flashcardRoutes.js file in this application handles routing logic that ultimately relies on IP address validation for security controls. A critical vulnerability was discovered in the dependency chain: the ip-address npm package version 10.2.0 contains a parsing flaw (CVE-2026-69192) that allows attackers to craft IP addresses that bypass validation checks, potentially enabling Server-Side Request Forgery attacks.

This vulnerability is particularly dangerous because IP address validation is often the last line of defense against SSRF. When an attacker can trick the parser into misinterpreting a malicious IP address as benign, they can redirect server-side requests to internal infrastructure, cloud metadata endpoints, or other sensitive resources.

The Vulnerability Explained

What Makes IP Address Parsing Dangerous?

IP addresses can be represented in multiple formats. For example, the localhost address 127.0.0.1 can also be written as:
- Decimal: 2130706433
- Octal: 0177.0.0.01
- Hexadecimal: 0x7f.0x0.0x0.0x1
- Mixed notation: 127.1 (which expands to 127.0.0.1)

CVE-2026-69192 exploits inconsistencies in how the ip-address library parses these alternative representations. When an application validates a user-supplied URL or IP address, it might use the ip-address library to check if the target is on a blocklist (e.g., internal ranges like 10.0.0.0/8, 192.168.0.0/16, or 127.0.0.0/8).

The Attack Scenario

Consider this attack flow specific to the flashcard application:

  1. An attacker submits a request to the flashcard API that includes a URL parameter (perhaps for importing flashcards from an external source)
  2. The application uses ip-address to validate that the URL doesn't point to internal services
  3. The attacker crafts a URL like http://0x7f000001/admin (hexadecimal for 127.0.0.1)
  4. Due to parsing inconsistencies in version 10.2.0, this address might not be recognized as localhost
  5. The server makes a request to what it believes is an external service, but actually hits the internal admin interface

Real-World Impact

For this backend application, successful exploitation could allow attackers to:
- Access internal APIs that handle flashcard data
- Reach cloud metadata endpoints (like AWS's 169.254.169.254) to steal credentials
- Scan internal network infrastructure
- Bypass authentication on internal services that trust requests from the application server

The Fix

The fix is straightforward but critical: upgrade the ip-address dependency from version 10.2.0 to 10.3.1.

Before (Vulnerable)

"node_modules/ip-address": {
  "version": "10.2.0",
  "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.2.0.tgz",
  "integrity": "sha512-/+S6j4E9AHvW9SWMSEY9Xfy66O5PWvVEJ08O0y5JGyEKQpojb0K0GKpz/v5HJ/G0vi3D2sjGK78119oXZeE0qA==",

After (Fixed)

"node_modules/ip-address": {
  "version": "10.3.1",
  "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-10.3.1.tgz",
  "integrity": "sha512-1e9d3kb97NHJTIJDZW9rKqW2h6+dFa50Dy0fpPSMQp2ADje5gvKsXmdiK6dwY5t76TaTt5+P5N1Y/LoToIxP6g==",

Why This Works

Version 10.3.1 of the ip-address library includes fixes for the parsing inconsistencies that allowed bypass attacks. The patched version:

  1. Normalizes all IP representations before comparison, ensuring that 0x7f000001, 2130706433, and 127.0.0.1 are all recognized as equivalent
  2. Handles edge cases in mixed notation that previously slipped through validation
  3. Maintains consistent parsing between the validation check and the actual network request

The fix also updates related dependencies in the mongoose dependency tree (agent-base, gaxios, gcp-metadata) to ensure the entire dependency chain uses consistent, secure networking code.

Key Takeaways

  • IP address parsing libraries require regular updates — CVE-2026-69192 shows that even well-maintained libraries can have subtle parsing bugs that enable security bypasses
  • The ip-address package in version 10.2.0 had inconsistent parsing that allowed hexadecimal, octal, and decimal IP representations to bypass blocklist validation
  • SSRF protection requires defense in depth — don't rely solely on IP validation; combine it with allowlists, network controls, and protocol restrictions
  • Transitive dependencies matter — this vulnerability was in the dependency tree, not directly imported code, highlighting the importance of scanning the full dependency graph
  • Automated dependency updates are essential — tools like Trivy caught this vulnerability before it could be exploited in production

How Orbis AppSec Detected This

  • Source: User-influenced input reaching URL/IP handling code paths in the backend routes
  • Sink: The ip-address library's parsing functions used for IP validation before making network requests
  • Missing control: The vulnerable version (10.2.0) lacked consistent normalization of alternative IP address representations
  • CWE: CWE-918 (Server-Side Request Forgery)
  • Fix: Upgraded ip-address from 10.2.0 to 10.3.1 in backend/package.json and backend/package-lock.json

Orbis AppSec automatically detected this vulnerability and opened a pull request with the fix. Try Orbis AppSec on your repositories to find and fix issues like this automatically.

Conclusion

CVE-2026-69192 demonstrates why dependency management is a critical part of application security. A subtle parsing inconsistency in the ip-address library could have allowed attackers to bypass SSRF protections and access internal services. By upgrading to version 10.3.1, this flashcard application now properly validates IP addresses regardless of how they're encoded.

Remember: security vulnerabilities in dependencies are just as dangerous as vulnerabilities in your own code. Implement automated scanning, keep dependencies updated, and always apply defense in depth when handling user-supplied URLs or IP addresses.

Prevention and further reading

View the Security Fix

Check out the pull request that fixed this vulnerability

View PR #1505

Related Articles

high

Unbounded Map in createLoginRateLimiter Exhausts API Memory

The console API's `createLoginRateLimiter` and `createMutationRateLimiter` stored one `Map` entry per client key with no upper bound and no expiry sweep, so an attacker rotating source addresses or identifiers could grow those maps until the Node process hit an out-of-memory crash. The fix introduces a `maxTrackedKeys` option (default 5000), a `trackedEntryLimit` sanitizer, and an `evictOldestIfFull` helper that drops the oldest tracked key while protecting the shared global counter. The rate li

high

js-yaml 4.3.1 Denial of Service: Malformed Input Hangs YAML Parser

A denial of service vulnerability in js-yaml versions 4.3.1 and earlier allows attackers to hang the YAML parser indefinitely by providing specially crafted malformed input. The fix, released in versions 4.3.2 and 3.15.2, patches the parsing logic to prevent unbounded processing. Upgrading is recommended for all applications parsing untrusted YAML data.

high

Express `app.get('*')` Wildcard Handler Path Traversal in watch.js

A first-party Express server's wildcard route handler used `req.url.indexOf('font.woff2')` to gate access to a font file, allowing attackers to bypass the substring check with crafted paths. The fix replaces the catch-all handler with explicit route registration.

critical

Updater.parseUpdate() CWE-494: Unsigned Metadata Download

The parseUpdate function in the Updater component extracted download URLs from remote server responses without cryptographic verification, enabling supply chain attacks via compromised or spoofed update servers. The fix adds strict URL validation requiring HTTPS and a trusted hostname before accepting any update metadata.

high

brace-expansion DoS: Exponential Backtracking in Nested Brace Patterns

A critical vulnerability in brace-expansion allows attackers to cause denial of service by submitting specially crafted patterns with nested braces. The exponential-time complexity in pattern expansion creates a computationally expensive path that can freeze applications processing user-controlled input.

high

CVE-2026-67213: nanoid customAlphabet Infinite Loop Fix

nanoid, a widely-used ID generator pulled in transitively through postcss and vitepress, had an infinite-loop bug in its `customAlphabet` code path before version 5.1.6. This PR pins the entire dependency tree to nanoid 5.1.16 via a pnpm override so no transitive consumer can resolve back to the vulnerable 3.3.16 release.