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 h
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
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | mkdocs | >= 1.2.2, < 1.2.3 | 1.2.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-40978
- https://github.com/mkdocs/mkdocs/issues/2601
- https://github.com/nisdn/CVE-2021-40978/issues/1
- https://github.com/mkdocs/mkdocs/pull/2604
- https://github.com/mkdocs/mkdocs/commit/1b15412f4caae476c262210315fd068d0521a833
- https://github.com/mkdocs/mkdocs/commit/57540911a0d632674dd23edec765189f96f84f6b
- https://github.com/mkdocs/mkdocs
- https://github.com/mkdocs/mkdocs/releases/tag/1.2.3
- https://github.com/nisdn/CVE-2021-40978
- https://github.com/pypa/advisory-database/tree/main/vulns/mkdocs/PYSEC-2021-878.yaml
- https://github.com/advisories/GHSA-qh9q-34h6-hcv9
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N- Weakness (CWE)
CWE-12, CWE-22- Platform
- Python (PyPI)
- Package
mkdocs- Disclosed
- 07.10.2021
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-qh9q-34h6-hcv9 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2021-878 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: mkdocs
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.