Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. mkdocs
  4. ›
  5. CVE-2021-40978

CVE-2021-40978: Directory traversal in mkdocs

October 12, 2021 (updated October 1, 2024)

The mkdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain :sensitive information.

References

  • github.com/advisories/GHSA-qh9q-34h6-hcv9
  • github.com/mkdocs/mkdocs
  • github.com/mkdocs/mkdocs/commit/1b15412f4caae476c262210315fd068d0521a833
  • github.com/mkdocs/mkdocs/commit/57540911a0d632674dd23edec765189f96f84f6b
  • github.com/mkdocs/mkdocs/issues/2601
  • github.com/mkdocs/mkdocs/pull/2604
  • github.com/mkdocs/mkdocs/releases/tag/1.2.3
  • github.com/nisdn/CVE-2021-40978
  • github.com/nisdn/CVE-2021-40978/issues/1
  • github.com/pypa/advisory-database/tree/main/vulns/mkdocs/PYSEC-2021-878.yaml
  • nvd.nist.gov/vuln/detail/CVE-2021-40978

Code Behaviors & Features

Detect and mitigate CVE-2021-40978 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.2.2 before 1.2.3, version 1.2.2

Fixed versions

  • 1.2.3

Solution

Upgrade to version 1.2.3 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-12: ASP.NET Misconfiguration: Missing Custom Error Page
  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/mkdocs/CVE-2021-40978.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:11 +0000.