Vulnerability record · CVE-2021-40978 · published 7 October 2021
CVE-2021-40978: Mkdocs path traversal vulnerability
Mkdocs · Mkdocs
The mkdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain :sensitive information. NOTE: the vendor has disputed this as described in https://github.com/mkdocs/mkdocs/issues/2601.] and https://github.com/nisdn/CVE-2021-40978/issues/1
Description
The mkdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain :sensitive information. NOTE: the vendor has disputed this as described in https://github.com/mkdocs/mkdocs/issues/2601.] and https://github.com/nisdn/CVE-2021-40978/issues/1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/mkdocs/mkdocs | Third Party Advisory |
| https://github.com/mkdocs/mkdocs/issues/2601 | Issue TrackingThird Party Advisory |
| https://github.com/nisdn/CVE-2021-40978 | ExploitThird Party Advisory |
| https://github.com/nisdn/CVE-2021-40978/issues/1 | Issue TrackingThird Party Advisory |
| https://github.com/mkdocs/mkdocs | Third Party Advisory |
| https://github.com/mkdocs/mkdocs/issues/2601 | Issue TrackingThird Party Advisory |
| https://github.com/nisdn/CVE-2021-40978 | ExploitThird Party Advisory |
| https://github.com/nisdn/CVE-2021-40978/issues/1 | Issue TrackingThird Party Advisory |
Track CVE-2021-40978 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2021-40978), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.