6.3medium
Axios has a NO_PROXY Hostname Normalization Bypass that Leads to SSRF
- Severity
- 6.3medium CVSS:4.0 by GitHub_M
- Exploit likelihood
- 1.23% (higher than 69% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-3p68-rc4w-qgx5
Description
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.0 and 0.31.0, Axios does not correctly handle hostname normalization when checking NO_PROXY rules. Requests to loopback addresses like localhost. (with a trailing dot) or [::1] (IPv6 literal) skip NO_PROXY matching and go through the configured proxy. This goes against what developers expect and lets attackers force requests through a proxy, even if NO_PROXY is set up to protect loopback or internal services. This issue leads to the possibility of proxy bypass and SSRF vulnerabilities allowing attackers to reach sensitive loopback or internal services despite the configured protections. This vulnerability is fixed in 1.15.0 and 0.31.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| axios axios | >= 1.0.0, < 1.15.0, < 0.31.0, before 0.31.0, from 1.0.0 before 1.15.0 | CVE List, NVD |
| automation-gateway | Not specified Not affected: from 0:2.5.20260422-3.el8ap before *, from 0:2.5.20260422-3.el9ap before * | CVE List |
| axios | Not specified | CVE List |
| cluster-observability-operator/distributed-tracing-console-plugin-pf4-rhel9 | Not specified Not affected: from 1781116645 before * | CVE List |
| cluster-observability-operator/distributed-tracing-console-plugin-pf5-rhel9 | Not specified Not affected: from 1781116658 before * | CVE List |
| cluster-observability-operator/distributed-tracing-console-plugin-pf6-rhel9 | Not specified Not affected: from 1781116387 before * | CVE List |
| cluster-observability-operator/distributed-tracing-console-plugin-rhel9 | Not specified Not affected: from 1781116392 before * | CVE List |
| cluster-observability-operator/monitoring-console-plugin-pf5-rhel9 | Not specified Not affected: from 1781116667 before * | CVE List |
| multicluster-engine/console-mce-rhel9 | Not specified Not affected: from 1778511348 before *, from 1778383863 before * | CVE List |
| network-observability/network-observability-console-plugin-compat-rhel9 | Not specified Not affected: from 1778508956 before * | CVE List |
| network-observability/network-observability-console-plugin-rhel9 | Not specified Not affected: from 1778510461 before * | CVE List |
| rhacm2/console-rhel9 | Not specified Not affected: from 1783451729 before * | CVE List |
| advanced-cluster-security/rhacs-main-rhel8 | Not specified Not affected: from 1779371594 before *, from 1779293013 before * | CVE List |
| ansible-automation-platform-25/lightspeed-rhel8 | Not specified Not affected: from 1780082949 before * | CVE List |
| ansible-automation-platform-26/lightspeed-rhel9 | Not specified Not affected: from 1779784904 before * | CVE List |
| ansible-automation-platform-26/lightspeed-rhel9-operator | Not specified Not affected: from 1787184682 before * | CVE List |
| rhdh/rhdh-hub-rhel9 | Not specified Not affected: from 1776784286 before *, from 1777903262 before * | CVE List |
| discovery/discovery-ui-rhel9 | Not specified Not affected: from 1778156756 before * | CVE List |
| rhmtc/openshift-migration-ui-rhel8 | Not specified Not affected: from 1783690532 before * | CVE List |
| rhoai/odh-dashboard-rhel9 | Not specified Not affected: from 1780467029 before *, from 1779189627 before * | CVE List |
| rhoai/odh-mod-arch-model-registry-rhel9 | Not specified Not affected: from 1780467147 before *, from 1778666987 before * | CVE List |
| rhoai/odh-mod-arch-gen-ai-rhel9 | Not specified Not affected: from 1778473763 before * | CVE List |
| devspaces/code-rhel9 | Not specified Not affected: from 1776744110 before * | CVE List |
| devspaces/dashboard-rhel9 | Not specified Not affected: from 1776795511 before * | CVE List |
| openshift-service-mesh/kiali-ossmc-rhel8 | Not specified Not affected: from 1776202125 before * | CVE List |
| openshift-service-mesh/kiali-rhel8 | Not specified Not affected: from 1776191302 before * | CVE List |
| openshift-service-mesh/kiali-ossmc-rhel9 | Not specified Not affected: from 1776151124 before *, from 1776151106 before *, from 1776155669 before *, from 1776151134 before * | CVE List |
| openshift-service-mesh/kiali-rhel9 | Not specified Not affected: from 1776151272 before *, from 1776151270 before *, from 1776149682 before *, from 1776151277 before * | CVE List |
| quay/quay-rhel8 | Not specified Not affected: from 1779822261 before *, from 1779811412 before *, from 1779689392 before *, from 1780891395 before *, from 1779811473 before * | CVE List |
| quay/quay-rhel9 | Not specified Not affected: from 1779204086 before *, from 1779922205 before * | CVE List |
| rhtas/rhtas-console-ui-rhel9 | Not specified Not affected: from 1779971506 before * | CVE List |
| redhat-user-workloads/gatekeeper-3-18 | Not specified | CVE List |
| redhat-user-workloads/gatekeeper-3-19 | Not specified | CVE List |
| mta/mta-ui-rhel8 | Not specified | CVE List |
| mta/mta-ui-rhel9 | Not specified | CVE List |
| redhat-user-workloads/art-images | Not specified | CVE List |
| redhat-user-workloads/console-mce-mce-211 | Not specified | CVE List |
| redhat-user-workloads/console-mce-mce-26 | Not specified | CVE List |
| redhat-user-workloads/console-mce-mce-27 | Not specified | CVE List |
| redhat-user-workloads/console-mce-mce-28 | Not specified | CVE List |
| redhat-user-workloads/console-mce-mce-29 | Not specified | CVE List |
| redhat-user-workloads/network-observability-console-plugin-zstream | Not specified | CVE List |
| openshift-pipelines/pipelines-hub-ui-rhel8 | Not specified | CVE List |
| redhat-user-workloads/hub-ui-rhel9 | Not specified | CVE List |
| redhat-user-workloads/pipelines-hub-ui-rhel9 | Not specified | CVE List |
| redhat-user-workloads/kiali-2-6-ossmc | Not specified | CVE List |
| redhat-user-workloads/kiali-3-0 | Not specified | CVE List |
| redhat-user-workloads/kiali-3-0-bundle | Not specified | CVE List |
| redhat-user-workloads/kiali-3-0-operator | Not specified | CVE List |
| redhat-user-workloads/kiali-3-1 | Not specified | CVE List |
| redhat-user-workloads/kiali-3-1-bundle | Not specified | CVE List |
| redhat-user-workloads/kiali-3-1-operator | Not specified | CVE List |
| redhat-user-workloads/kiali-3-1-ossmc | Not specified | CVE List |
| redhat-user-workloads/kiali-3-2 | Not specified | CVE List |
| redhat-user-workloads/kiali-3-2-ossmc | Not specified | CVE List |
| redhat-user-workloads/kiali-3-3 | Not specified | CVE List |
| redhat-user-workloads/kiali-3-3-ossmc | Not specified | CVE List |
| 3scale-amp21/system | Not specified | CVE List |
| 3scale-amp22/system | Not specified | CVE List |
| 3scale-amp2/system-rhel7 | Not specified | CVE List |
| 3scale-amp2/system-rhel8 | Not specified | CVE List |
| 3scale-amp2/system-rhel9 | Not specified | CVE List |
| redhat-user-workloads/console-acm-215 | Not specified | CVE List |
| redhat-user-workloads/console-acm-216 | Not specified | CVE List |
| ansible-automation-platform-24/lightspeed-rhel8-operator | Not specified | CVE List |
| automation-controller | Not specified | CVE List |
| automation-hub | Not specified | CVE List |
| automation-platform-ui | Not specified | CVE List |
| python3.11-galaxy-ng | Not specified | CVE List |
| python3.12-galaxy-ng | Not specified | CVE List |
| python3x-galaxy-ng | Not specified | CVE List |
| python-galaxy-ng | Not specified | CVE List |
| redhat-user-workloads/automation-reports | Not specified | CVE List |
| redhat-user-workloads/gateway-rhel9 | Not specified | CVE List |
| apicurio/apicurio-registry-ui-rhel8 | Not specified | CVE List |
| apicurio/apicurio-registry-ui-rhel9 | Not specified | CVE List |
| redhat-user-workloads/kueue-0-12 | Not specified | CVE List |
| redhat-user-workloads/kueue-bundle-1-1 | Not specified | CVE List |
| redhat-user-workloads/kueue-must-gather-1-1 | Not specified | CVE List |
| redhat-user-workloads/kueue-operator-1-1 | Not specified | CVE List |
| rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processor | Not specified | CVE List |
| grafana | Not specified | CVE List |
| rhelai3/bootc-cuda-rhel9 | Not specified | CVE List |
| rhelai3/bootc-rocm-rhel9 | Not specified | CVE List |
| rhelai3/disk-image-cuda-rhel9 | Not specified | CVE List |
| rhoai/odh-dashboard-rhel8 | Not specified | CVE List |
| rhoai/odh-mod-arch-maas-rhel9 | Not specified | CVE List |
| openshift3/ose-console | Not specified | CVE List |
| openshift4/ose-console | Not specified | CVE List |
| openshift4/ose-console-rhel9 | Not specified | CVE List |
| container-native-virtualization/kubevirt-console-plugin | Not specified | CVE List |
| container-native-virtualization/kubevirt-console-plugin-rhel9 | Not specified | CVE List |
| openshift-virtualization/kubevirt-console-plugin-rhel9 | Not specified | CVE List |
| redhat-user-workloads/quay-quay-v3-12 | Not specified | CVE List |
| redhat-user-workloads/quay-quay-v3-13 | Not specified | CVE List |
| redhat-user-workloads/quay-quay-v3-14 | Not specified | CVE List |
| redhat-user-workloads/quay-quay-v3-15 | Not specified | CVE List |
| redhat-user-workloads/quay-quay-v3-16 | Not specified | CVE List |
| redhat-user-workloads/quay-quay-v3-17 | Not specified | CVE List |
| redhat-user-workloads/quay-quay-v3-9 | Not specified | CVE List |
| redhat-user-workloads/iop-advisor-frontend-sat-6-18 | Not specified | CVE List |
| redhat-user-workloads/iop-host-inventory-frontend-sat-6-18 | Not specified | CVE List |
| redhat-user-workloads/iop-vulnerability-frontend-sat-6-18 | Not specified | CVE List |
| redhat-user-workloads/rhtpa-product-0-3-z | Not specified | CVE List |
| redhat-user-workloads/rhtpa-product-0-4-z | Not specified | CVE List |
| rhtpa/rhtpa-trustification-service-rhel9 | Not specified | CVE List |
| redhat-user-workloads/ansible-plugins | Not specified | CVE List |
| axios (npm) | from 1.0.0 before 1.15.0, before 0.31.0 | GitHub Advisory Database |
All scores
| GitHub_M | 6.3medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| redhat-SADP | 7.0high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L |
| GitHub | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| GitHub | medium CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N |
| NVD | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:L |
Classification
What each source says
CVE List
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.0 and 0.31.0, Axios does not correctly handle hostname normalization when checking NO_PROXY rules. Requests to loopback addresses like localhost. (with a trailing dot) or [::1] (IPv6 literal) skip NO_PROXY matching and go through the configured proxy. This goes against what developers expect and lets attackers force requests through a proxy, even if NO_PROXY is set up to protect loopback or internal services. This issue leads to the possibility of proxy bypass and SSRF vulnerabilities allowing attackers to reach sensitive loopback or internal services despite the configured protections. This vulnerability is fixed in 1.15.0 and 0.31.0.
GitHub Advisory Database
Axios does not correctly handle hostname normalization when checking NO_PROXY rules.
Requests to loopback addresses like localhost. (with a trailing dot) or [::1] (IPv6 literal) skip NO_PROXY matching and go through the configured proxy.
This goes against what developers expect and lets attackers force requests through a proxy, even if NO_PROXY is set up to protect loopback or internal services.
According to RFC 1034 §3.1 and RFC 3986 §3.2.2, a hostname can have a trailing dot to show it is a fully qualified domain name (FQDN). At the DNS level, localhost. is the same as localhost.
However, Axios does a literal string comparison instead of normalizing hostnames before checking NO_PROXY. This causes requests like http://localhost.:8080/ and http://[::1]:8080/ to be incorrectly proxied.
This issue leads to the possibility of proxy bypass and SSRF vulnerabilities allowing attackers to reach sensitive loopback or internal services despite the configured protections.
PoC
import http from "http";
import axios from "axios";
const proxyPort = 5300;
http.createServer((req, res) => {
console.log("[PROXY] Got:", req.method, req.url, "Host:", req.headers.host);
res.writeHead(200, { "Content-Type": "text/plain" });
res.end("proxied");
}).listen(proxyPort, () => console.log("Proxy", proxyPort));
process.env.HTTP_PROXY = `http://127.0.0.1:${proxyPort}`;
process.env.NO_PROXY = "localhost,127.0.0.1,::1";
async function test(url) {
try {
await axios.get(url, { timeout: 2000 });
} catch {}
}
setTimeout(async () => {
console.log("\n[*] Testing http://localhost.:8080/");
await test("http://localhost.:8080/"); // goes through proxy
console.log("\n[*] Testing http://[::1]:8080/");
await test("http://[::1]:8080/"); // goes through proxy
}, 500);
Expected: Requests bypass the proxy (direct to loopback).
Actual: Proxy logs requests for localhost. and [::1].
Impact
-
Applications that rely on
NO_PROXY=localhost,127.0.0.1,::1for protecting loopback/internal access are vulnerable. -
Attackers controlling request URLs can:
- Force Axios to send local traffic through an attacker-controlled proxy.
- Bypass SSRF mitigations relying on NO_PROXY rules.
- Potentially exfiltrate sensitive responses from internal services via the proxy.
Affected Versions
- Confirmed on Axios 1.12.2 (latest at time of testing).
- affects all versions that rely on Axios’ current
NO_PROXYevaluation.
Remediation
Axios should normalize hostnames before evaluating NO_PROXY, including:
- Strip trailing dots from hostnames (per RFC 3986).
- Normalize IPv6 literals by removing brackets for matching.
NVD (es)
Axios es un cliente HTTP basado en promesas para el navegador y Node.js. Antes de 1.15.0 y 0.31.0, Axios no maneja correctamente la normalización de nombres de host al verificar las reglas NO_PROXY. Las solicitudes a direcciones de bucle invertido como localhost. (con un punto final) o [::1] (literal IPv6) omiten la coincidencia de NO_PROXY y pasan por el proxy configurado. Esto va en contra de lo que los desarrolladores esperan y permite a los atacantes forzar solicitudes a través de un proxy, incluso si NO_PROXY está configurado para proteger servicios de bucle invertido o internos. Este problema conduce a la posibilidad de omisión de proxy y vulnerabilidades SSRF, permitiendo a los atacantes alcanzar servicios sensibles de bucle invertido o internos a pesar de las protecciones configuradas. Esta vulnerabilidad está corregida en 1.15.0 y 0.31.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-62718 changed 2026-09-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-3p68-rc4w-qgx5 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2025-62718 changed 2026-10-14 | Public domain |