CVE-2025-8267: ssrfcheck SSRF Bypass Caused By Failure Vulnerability

HIGH
Advisory Identifier: GHSA-p4hc-9pjh-55c8
CVSS 7.5
CWE-918
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2025-8267
GHSA Identifier GHSA-p4hc-9pjh-55c8
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product ssrfcheck
Package Ecosystem npm
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (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.

ssrfcheck fixed: 1.2.0
npm install ssrfcheck@1.2.0
Verify Direct and Transitive Dependencies

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

# 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 1. Install the `ssrfcheck` package: ```bash npm install ssrfcheck ``` 2. Define an `app.js` file with the programmatic API of `ssrfcheck`: ```javascript 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 [CVE-2025-8267](https://nvd.nist.gov/vuln/detail/CVE-2025-8267) # Author Liran Tal

CVE-2025-8267 Affected ssrfcheck Versions

1 component(s)
Fixed Versions:
1.2.0
Product / Package Ecosystem Affected Versions Fixed Version
ssrfcheck
npm
< 1.2.0
1.2.0

References

Frequently Asked Questions

What is CVE-2025-8267?
CVE-2025-8267 is a security vulnerability in ssrfcheck involving SSRF Bypass Caused by Failure to Classify Reserved IP Address Space as Invalid under CWE-918: Server-Side Request Forgery (SSRF).
Which ssrfcheck versions are affected?
Affected versions include releases prior to 1.2.0 across affected packages: ssrfcheck.
What version fixes CVE-2025-8267?
Upgrading to 1.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ssrfcheck affected?
Yes, ssrfcheck is affected in releases prior to 1.2.0. Upgrade your dependency to 1.2.0 or later.
What is the CVSS score of CVE-2025-8267?
CVE-2025-8267 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2025-8267?
CVE-2025-8267 is classified under CWE-918: Server-Side Request Forgery (SSRF) (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.).
How can I check npm dependencies for CVE-2025-8267?
Run the dependency tree command: 'npm ls ssrfcheck'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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
  }
}