Live threats

All CVEs / Mkdocs

CVE-2021-40978Mkdocs

High 7.5 No auth neededHigh EPSS

Priority
61
CVSS 3.1
7.5
EPSS
15.0%
probability of exploitation in 30 days · percentile 97
Auth required
No
Published
Oct 7, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Mkdocs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI mkdocs ≥ 1.2.2 < 1.2.3 1.2.3 pip install "mkdocs>=1.2.3"
PyPI mkdocs ≥ 1.2.2 < 1.2.3 1.2.3 pip install "mkdocs>=1.2.3"

Per OSV / GitHub Advisories (GHSA-qh9q-34h6-hcv9, PYSEC-2021-878). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
mkdocsmkdocs1.2.2

Official sources

References

Links published by the sources. Open them with care.