{"id":"CVE-2021-40978","aliases":["DEBIAN-CVE-2021-40978","EUVD-2021-0136","GHSA-qh9q-34h6-hcv9","PYSEC-2021-878"],"status":"disputed","title":"Directory traversal in mkdocs","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","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.14984,"percentile":0.96739,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-12","CWE-22"],"published":"2021-10-07T13:23:41Z","modified":"2026-10-23T18:03:28Z","exploits":[{"source":"nuclei","id":"CVE-2021-40978","title":"MKdocs 1.2.2 - Directory Traversal","type":"detection template","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-40978.yaml"},{"source":"pocgithub","id":"nisdn/CVE-2021-40978","title":"nisdn/CVE-2021-40978","date":"2021-10-04","url":"https://github.com/nisdn/CVE-2021-40978"}],"fixes":[{"ecosystem":"PyPI","package":"mkdocs","fixed_in":["1.2.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"mkdocs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.2"},{"last_affected":"1.2.2"},{"fixed":"1.2.3"}]}],"versions":["1.2.2"]},{"source":"osv","ecosystem":"Debian:12","package":"python-mkdocs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.2+dfsg-2","1.5.2+dfsg-1","1.5.3+dfsg-1","1.5.3+dfsg-2","1.6.1+dfsg-1","1.6.1+dfsg-2","1.6.1+dfsg-3","1.6.1+dfsg1-1","1.6.1+dfsg1-2","1.6.1+dfsg1-3","1.6.1+dfsg1-4","1.6.1+dfsg1-5"]},{"source":"osv","ecosystem":"Debian:13","package":"python-mkdocs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.1+dfsg1-2","1.6.1+dfsg1-3","1.6.1+dfsg1-4","1.6.1+dfsg1-5"]},{"source":"osv","ecosystem":"Debian:14","package":"python-mkdocs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.1+dfsg1-2","1.6.1+dfsg1-3","1.6.1+dfsg1-4","1.6.1+dfsg1-5"]},{"source":"osv","ecosystem":"PyPI","package":"mkdocs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.2"},{"fixed":"1.2.3"}]}],"versions":["1.2.2"]},{"source":"osv","ecosystem":"PyPI","package":"mkdocs","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.2.2"},{"fixed":"1.2.3"}]}],"versions":["1.2.2"]}],"products":[{"vendor":"mkdocs","product":"mkdocs"}],"references":[{"url":"https://github.com/mkdocs/mkdocs","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory","package","web"]},{"url":"https://github.com/nisdn/CVE-2021-40978","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/mkdocs/mkdocs/issues/2601","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://github.com/nisdn/CVE-2021-40978/issues/1","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40978","tags":["advisory"]},{"url":"https://github.com/mkdocs/mkdocs/pull/2604","tags":["web"]},{"url":"https://github.com/mkdocs/mkdocs/releases/tag/1.2.3","tags":["web"]},{"url":"https://github.com/mkdocs/mkdocs/commit/57540911a0d632674dd23edec765189f96f84f6b","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mkdocs/PYSEC-2021-878.yaml","tags":["web"]},{"url":"https://github.com/mkdocs/mkdocs/commit/1b15412f4caae476c262210315fd068d0521a833","tags":["web"]},{"url":"https://github.com/advisories/GHSA-qh9q-34h6-hcv9","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-40978","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-40978","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","status":"disputed","published":"2021-10-07T13:23:41Z","modified":"2024-08-04T02:59:30.392Z","updated_at":"2026-11-02T14:33:01.495293Z"}],"euvd":[{"id":"EUVD-2021-0136","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","status":"published","published":"2021-10-07T13:23:41Z","modified":"2024-08-04T02:59:30Z","updated_at":"2026-11-03T03:24:19.692229Z"}],"ghsa":[{"id":"GHSA-qh9q-34h6-hcv9","title":"Directory traversal in mkdocs","description":"The mkdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain :sensitive information.","status":"published","published":"2021-10-12T18:48:24Z","modified":"2024-10-01T19:21:32Z","cvss":[{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","level":"high"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-12","CWE-22"],"updated_at":"2026-11-02T14:38:07.852618Z"}],"nvd":[{"id":"CVE-2021-40978","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","status":"disputed","published":"2021-10-07T14:15:08.28Z","modified":"2026-06-17T04:07:42.017Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:06:59.314106Z"}],"osv":[{"id":"CVE-2021-40978","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","status":"published","published":"2021-10-07T14:15:08.28Z","modified":"2026-10-20T10:54:57.600427508Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"DEBIAN-CVE-2021-40978","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","status":"published","published":"2021-10-07T14:15:08.28Z","modified":"2026-10-23T18:03:28.247795766Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:45:35.521549Z"},{"id":"GHSA-qh9q-34h6-hcv9","title":"Directory traversal in mkdocs","description":"The mkdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain :sensitive information.","status":"published","published":"2021-10-12T18:48:24Z","modified":"2024-10-01T19:21:31Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"},{"version":"4.0","score":8.7,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N","level":"high"}],"cwes":["CWE-12","CWE-22"],"updated_at":"2026-11-02T15:46:54.40888Z"},{"id":"PYSEC-2021-878","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","status":"published","published":"2021-10-07T14:15:00Z","modified":"2026-06-10T17:02:16.308115975Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"updated_at":"2026-11-02T15:52:53.449407Z"}]}}
