hackmdio / hackmdio/codimd

Security: Upgrade axios to 1.15.0+ (CVE-2025-62718, CVE-2026-40175)

Open
#1,961 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.1k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

## Security Vulnerability Report

We have identified two critical security vulnerabilities in the axios dependency used by CodiMD.

### Affected Version
Current axios version: `0.21.4`

### Vulnerabilities

#### CVE-2025-62718 — SSRF via NO_PROXY Hostname Normalization Bypass
- **Severity**: High
- **Description**: Axios does not correctly handle hostname normalization when checkin NO_PROXY rules. Requests to loopback addresses like `localhost.` (trailing dot) or `[::1]` (IPv6 literal) skip NO_PROXY matching and go through the configured proxy, allowing attackers to reach sensitive internal services.
- **Fixed in**: axios >= 1.15.0
- **Reference**: https://github.com/advisories/GHSA-3p68-rc4w-qgx5

#### CVE-2026-40175 — RCE / Full Cloud Compromise via Prototype Pollution Gadget Chain
- **Severity**: Critical (CVSS 10.0)
- **Description**: Axios is vulnerable to a "Gadget" attack chain that allows Prototype Pollution in any third-party dependency to be escalated into Remote Code Execution (RCE) or Full Cloud Compromise (via AWS IMDSv2 bypass).
- **Fixed in**: axios >= 1.15.0
- **Reference**: https://github.com/advisories/GHSA-fvcv-3m26-pcqx

### Request
Please upgrade axios to **1.15.0 or later** to address both vulnerabilities.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.