CVE-2025-57814
JSON

5.5medium

request-filtering-agent SSRF Bypass via HTTPS Requests

Severity
5.5medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.52% (higher than 45% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pw25-c82r-75mm

Description

request-filtering-agent is an http(s).Agent implementation that blocks requests to Private/Reserved IP addresses. 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. 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. This vulnerability has been fixed in request-filtering-agent version 2.0.0. Users should upgrade to version 2.0.0 or later.

Affected

Product or packageVersionsReported by
azu request-filtering-agent< 2.0.0CVE List
request-filtering-agent (npm)before 2.0.0GitHub Advisory Database

All scores

GitHub_M5.5medium CVSS:4.0CVSS: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
GitHubmedium CVSS:4.0CVSS: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

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

request-filtering-agent is an http(s).Agent implementation that blocks requests to Private/Reserved IP addresses. 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. 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. This vulnerability has been fixed in request-filtering-agent version 2.0.0. Users should upgrade to version 2.0.0 or later.

GitHub Advisory Database

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

This vulnerability primarily affects services using self-signed certificates on 127.0.0.1.

Not affected (correctly blocked in all versions):

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

NVD (es)

request-filtering-agent es una implementación de http(s).Agent que bloquea las solicitudes a direcciones IP privadas/reservadas. Las versiones 1.xx y anteriores contienen una vulnerabilidad donde las solicitudes HTTPS a 127.0.0.1 eluden el filtrado de direcciones IP, mientras que las solicitudes HTTP se bloquean correctamente. Esto permite a los atacantes acceder potencialmente a servicios HTTPS internos que se ejecutan en el host local, evadiendo la protección SSRF de la librería. Esta vulnerabilidad es especialmente peligrosa cuando la aplicación acepta URL controladas por el usuario y los servicios internos solo están protegidos por restricciones a nivel de red. Esta vulnerabilidad se ha corregido en la versión 2.0.0 de request-filtering-agent. Los usuarios deben actualizar a la versión 2.0.0 o posterior.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-57814 changed 2025-08-26CVE Terms of Use
GitHub Advisory DatabaseGHSA-pw25-c82r-75mm changed 2025-08-26CC-BY-4.0
NVDCVE-2025-57814 changed 2026-06-17Public domain