ssrfcheck: SSRF Bypass Caused by Failure to Classify Reserved IP Address Space as Invalid
SSRF Bypass in ssrfcheck - fails to classify reserved IP address space as invalid
ssrfcheck is an npm package that serves to provide protection from SSRF by validating URLs or hostname inputs.
Resources:
- Project's GitHub code repository: https://github.com/felippe-regazio/ssrfcheck
- Project's npm package: https://www.npmjs.com/package/ssrfcheck
Vulnerability
The ssrfcheck package maintains a denylist of IP addresses and ranges to check against when validating if an IP address is to be considered as safe or not.
However, the IP address list used for the denylist is incomplete and misses a reserved IP address space as defined by the IANA (Internet Assigned Numbers Authority):
- 224.0.0.0/4 - Multicast
Practically, this reserved IP address space is used for multicast traffic and would most commonly be used for reserved local communication over network protocols such as UDP, which would make it less likely to be used in a typical SSRF attack in practice.
However, such reserved IP address space shouldn't be allowed and it would be responsible of the SSRF protection package to align and conform to an agreed-upon standard of special-purposed addresses that should not be considered a valid public IP address. For reference, the popular npm packages private-ip and ipaddr.js that are highly dependent-upon to make decisions about SSRF protection and both consider the above mentioned IP address space as reserved and is not considered a valid public IP address.
Exploit Proof of Concept
- Install the
ssrfcheckpackage:
npm install ssrfcheck
- Define an
app.jsfile with the programmatic API ofssrfcheck:
import { isSSRFSafeURL } from 'ssrfcheck';
let result
result = isSSRFSafeURL('https://012.1.2.3/whatever');
console.log(result); // returns false
result = isSSRFSafeURL('https://localhost:8080/whatever');
console.log(result); // returns false
result = isSSRFSafeURL('https://239.255.255.250:8080/whatever');
console.log(result); // returns true - bypassed
Vulnerable versions
All versions of ssrfcheck are vulnerable to this issue, up to and including to the latest version of 1.1.1.
Assigned CVE
Author
Liran Tal
Software afectado
Haz clic en una tecnología para ver todas sus vulnerabilidades.
| Plataforma | Paquete | Versiones vulnerables | Corregida en |
|---|---|---|---|
| Paquete de npm | ssrfcheck | < 1.2.0 | 1.2.0 |
Referencias
- https://github.com/felippe-regazio/ssrfcheck/security/advisories/GHSA-p4hc-9pjh-55c8
- https://nvd.nist.gov/vuln/detail/CVE-2025-8267
- https://github.com/felippe-regazio/ssrfcheck/issues/5
- https://github.com/felippe-regazio/ssrfcheck/commit/9507b49fd764f2a1a1d1e3b9ee577b7545e6950e
- https://gist.github.com/lirantal/2976840639df824cb3abe60d13c65e04
- https://github.com/felippe-regazio/ssrfcheck
- https://security.snyk.io/vuln/SNYK-JS-SSRFCHECK-9510756
- Vector CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N- Debilidad (CWE)
CWE-918- Plataforma
- npm
- Paquete
ssrfcheck- Publicada
- 05.05.2026
- Actualizado
- 11.10.2026 10:22
Fuentes y licencias
OSV / GitHub Advisory Database - GHSA-p4hc-9pjh-55c8 - CC BY 4.0
Historial de vulnerabilidades: ssrfcheck
Todas las vulnerabilidades publicadas de este paquete (Paquete de npm), de la más reciente a la más antigua. Muestra si es un fallo aislado o un paquete que hay que vigilar.
- Entradas en total
- 2
- Primera → última
- 05.2026 05.2026
- Sin corrección
- 1
- Explotada en ataques
- 0
Distribución por gravedad
- Alta 2
Divulgaciones por año
- 2026: 2
-
ssrfcheck: SSRF Bypass Caused by Failure to Classify Reserved IP Address Space as Invalid esta entrada
Identifica las vulnerabilidades de tu aplicación
Con la integración de DockRay y el inventario de software activado, DockRay compara las versiones notificadas de los componentes con las vulnerabilidades conocidas y avisa de las coincidencias confirmadas. La cobertura depende de la tecnología compatible y de los avisos disponibles.