CVE-2025-8267: ssrfcheck SSRF Bypass Caused By Failure Vulnerability
HIGHCVE-2025-8267 is a HIGH (CVSS 7.5) ssrf bypass caused by failure vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting ssrfcheck libraries in the npm ecosystem. The issue involves ssrf bypass caused by failure to classify reserved ip address space as invalid. Remediation is available by upgrading affected packages to version 1.2.0.
CVE-2025-8267 at a Glance
Security Impact
CVSS: 7.5
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).
How to Fix CVE-2025-8267
To remediate this vulnerability, upgrade all affected ssrfcheck dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
npm install ssrfcheck@1.2.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
npm ls ssrfcheck
How to Check if You Are Affected
To determine whether your Node.js application is affected by CVE-2025-8267, inspect your project dependencies using npm:
npm ls ssrfcheck
Analyze the terminal output to locate any version of ssrfcheck in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.0), your application is affected.
Note: The npm ls ssrfcheck command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In ssrfcheck, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-8267 Affected ssrfcheck Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
ssrfcheck
|
npm |
< 1.2.0
|
1.2.0
|
References
Frequently Asked Questions
What is CVE-2025-8267?
Which ssrfcheck versions are affected?
What version fixes CVE-2025-8267?
Is ssrfcheck affected?
What is the CVSS score of CVE-2025-8267?
What CWE is associated with CVE-2025-8267?
How can I check npm dependencies for CVE-2025-8267?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p4hc-9pjh-55c8",
"modified" : "2026-05-05T20:29:06Z",
"published" : "2026-05-05T20:29:06Z",
"aliases" : [ "CVE-2025-8267" ],
"summary" : "ssrfcheck: SSRF Bypass Caused by Failure to Classify Reserved IP Address Space as Invalid",
"details" : "# SSRF Bypass in `ssrfcheck` - fails to classify reserved IP address space as invalid\n\n`ssrfcheck` is an npm package that serves to provide protection from SSRF by validating URLs or hostname inputs.\n\nResources: \n * Project's GitHub code repository: https://github.com/felippe-regazio/ssrfcheck\n * Project's npm package: https://www.npmjs.com/package/ssrfcheck\n \n## Vulnerability\n\nThe `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.\n\nHowever, 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):\n\n- 224.0.0.0/4 - Multicast\n\nPractically, 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.\n\nHowever, 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.\n\n## Exploit Proof of Concept\n\n1. Install the `ssrfcheck` package:\n\n```bash\nnpm install ssrfcheck\n```\n\n2. Define an `app.js` file with the programmatic API of `ssrfcheck`:\n\n```javascript\nimport { isSSRFSafeURL } from 'ssrfcheck';\n\nlet result\nresult = isSSRFSafeURL('https://012.1.2.3/whatever');\nconsole.log(result); // returns false\nresult = isSSRFSafeURL('https://localhost:8080/whatever');\nconsole.log(result); // returns false\n\nresult = isSSRFSafeURL('https://239.255.255.250:8080/whatever');\nconsole.log(result); // returns true - bypassed\n```\n\n## Vulnerable versions\n\nAll versions of ssrfcheck are vulnerable to this issue, up to and including to the latest version of `1.1.1`.\n\n## Assigned CVE\n\n[CVE-2025-8267](https://nvd.nist.gov/vuln/detail/CVE-2025-8267)\n\n# Author\n\nLiran Tal",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N/E:P"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "npm",
"name" : "ssrfcheck"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/felippe-regazio/ssrfcheck/security/advisories/GHSA-p4hc-9pjh-55c8"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-8267"
}, {
"type" : "WEB",
"url" : "https://github.com/felippe-regazio/ssrfcheck/issues/5"
}, {
"type" : "WEB",
"url" : "https://github.com/felippe-regazio/ssrfcheck/commit/9507b49fd764f2a1a1d1e3b9ee577b7545e6950e"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/lirantal/2976840639df824cb3abe60d13c65e04"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/felippe-regazio/ssrfcheck"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-JS-SSRFCHECK-9510756"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-05-05T20:29:06Z",
"nvd_published_at" : null
}
}