CVE-2025-57814: Request filtering agent Request-filtering-agent SSRF Bypass Vulnerability

MODERATE
Advisory Identifier: GHSA-pw25-c82r-75mm
CWE-918
Published
Advisory Summary

CVE-2025-57814 is a MODERATE request-filtering-agent ssrf bypass vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Request filtering agent libraries in the npm ecosystem. The issue involves request-filtering-agent ssrf bypass via https requests to 127.0.0.1. Remediation is available by upgrading affected packages to version 2.0.0.

CVE-2025-57814 at a Glance

CVE Identifier CVE-2025-57814
GHSA Identifier GHSA-pw25-c82r-75mm
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-918: Server-Side Request Forgery (SSRF)
Affected Product Request filtering agent
Package Ecosystem npm
Published Date
Last Updated

How to Fix CVE-2025-57814

To remediate this vulnerability, upgrade all affected Request filtering agent dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

request-filtering-agent fixed: 2.0.0
npm install request-filtering-agent@2.0.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 request-filtering-agent

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2025-57814, inspect your project dependencies using npm:

npm ls request-filtering-agent

Analyze the terminal output to locate any version of Request filtering agent in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.0), your application is affected.

Note: The npm ls request-filtering-agent 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 Request filtering agent, 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

request-filtering-agent versions 1.x.x and earlier contain a vulnerability where HTTPS requests to 127.0.0.1 bypass IP address filtering, while HTTP requests are correctly blocked. **Impact:** Vulnerable patterns (requests that should be blocked but are allowed): - https://127.0.0.1:443/api - https://127.0.0.1:8443/admin - Any HTTPS request using direct IP address `https://127.0.0.1` This vulnerability primarily affects services using self-signed certificates on `127.0.0.1`. **Not affected (correctly blocked in all versions):** - http://127.0.0.1:80/api - HTTP requests are properly blocked - https://localhost:443/api - Domain-based requests trigger DNS lookup and are blocked - http://localhost:80/api - Domain-based HTTP requests are blocked - Requests to other private IPs like 192.168.x.x, 10.x.x.x, 172.16.x.x This allows attackers to potentially access internal HTTPS services running on localhost, bypassing the library's SSRF protection. The vulnerability is particularly dangerous when the application accepts user-controlled URLs and internal services are only protected by network-level restrictions. ## Fixed in 2.0.0 This vulnerability has been fixed in request-filtering-agent version 2.0.0. Users should upgrade to version 2.0.0 or later. Root Cause:The HTTPS agent fails to validate direct IP addresses like `https://127.0.0.1` during TLS connection setup, allowing them to bypass the security filter. Details: https://github.com/azu/request-filtering-agent-https127-test Thanks Luca

CVE-2025-57814 Affected Request filtering agent Versions

1 component(s)
Fixed Versions:
2.0.0
Product / Package Ecosystem Affected Versions Fixed Version
request-filtering-agent
npm
< 2.0.0
2.0.0

References

Frequently Asked Questions

What is CVE-2025-57814?
CVE-2025-57814 is a security vulnerability in Request filtering agent involving request-filtering-agent SSRF Bypass via HTTPS Requests to 127.0.0.1 under CWE-918: Server-Side Request Forgery (SSRF).
Which Request filtering agent versions are affected?
Affected versions include releases prior to 2.0.0 across affected packages: request-filtering-agent.
What version fixes CVE-2025-57814?
Upgrading to 2.0.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is request-filtering-agent affected?
Yes, request-filtering-agent is affected in releases prior to 2.0.0. Upgrade your dependency to 2.0.0 or later.
What CWE is associated with CVE-2025-57814?
CVE-2025-57814 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-57814?
Run the dependency tree command: 'npm ls request-filtering-agent'. 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-pw25-c82r-75mm",
  "modified" : "2025-08-26T17:12:50Z",
  "published" : "2025-08-25T21:48:01Z",
  "aliases" : [ "CVE-2025-57814" ],
  "summary" : "request-filtering-agent SSRF Bypass via HTTPS Requests to 127.0.0.1",
  "details" : "request-filtering-agent versions 1.x.x and earlier contain a vulnerability where HTTPS requests to 127.0.0.1 bypass IP address filtering, while HTTP requests are correctly blocked.\n\n**Impact:**\n\nVulnerable patterns (requests that should be blocked but are allowed):\n- https://127.0.0.1:443/api\n- https://127.0.0.1:8443/admin\n- Any HTTPS request using direct IP address `https://127.0.0.1`\n\nThis vulnerability primarily affects services using self-signed certificates on `127.0.0.1`.\n\n**Not affected (correctly blocked in all versions):**\n- http://127.0.0.1:80/api - HTTP requests are properly blocked\n- https://localhost:443/api - Domain-based requests trigger DNS lookup and are blocked\n- http://localhost:80/api - Domain-based HTTP requests are blocked\n- Requests to other private IPs like 192.168.x.x, 10.x.x.x, 172.16.x.x\n\nThis allows attackers to potentially access internal HTTPS services running on localhost, bypassing the library's SSRF protection. The vulnerability is particularly dangerous when the application accepts user-controlled URLs and internal services are only protected by network-level restrictions.\n\n## Fixed in 2.0.0\n\nThis vulnerability has been fixed in request-filtering-agent version 2.0.0. Users should upgrade to version 2.0.0 or later.\n\nRoot Cause:The HTTPS agent fails to validate direct IP addresses like `https://127.0.0.1` during TLS connection setup, allowing them to bypass the security filter.\n\nDetails: https://github.com/azu/request-filtering-agent-https127-test\n\nThanks Luca",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:P"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "request-filtering-agent"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/azu/request-filtering-agent/security/advisories/GHSA-pw25-c82r-75mm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-57814"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/azu/request-filtering-agent"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/azu/request-filtering-agent-https127-test"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-918" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-08-25T21:48:01Z",
    "nvd_published_at" : "2025-08-25T22:15:33Z"
  }
}