{"id":"CVE-2021-40978","aliases":["CVE-2021-40978","GHSA-qh9q-34h6-hcv9","PYSEC-2021-878"],"related":[],"kind":"vulnerability","state":"published","title":"Directory traversal in mkdocs","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"en","text":"The mkdocs 1.2.2 built-in dev-server allows directory traversal using the port 8000, enabling remote exploitation to obtain :sensitive information.","format":"markdown","source":"ghsa"},{"lang":"es","text":"** EN DISPUTA ** El dev-server incorporado en mkdocs versión 1.2.2, permite un salto de directorios usando el puerto 8000, permitiendo una explotación remota para obtener información confidencial. NOTA: el vendedor ha rebatido esto como se describe en https://github.com/mkdocs/mkdocs/issues/2601.] y https://github.com/nisdn/CVE-2021-40978/issues/1.","source":"nvd"}],"published":"2021-10-07T13:23:41.000Z","modified":"2026-06-17T04:07:42.017Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","score":5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-12","CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.2.2","status":"affected","fixed":"1.2.3"}],"ecosystem":"PyPI","package":"mkdocs","purl":"pkg:pypi/mkdocs","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.2.2"}],"vendor":"mkdocs","product":"mkdocs","cpe":"cpe:2.3:a:mkdocs:mkdocs:1.2.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"1.2.2","status":"affected","fixed":"1.2.3"}],"ecosystem":"PyPI","package":"mkdocs","purl":"pkg:pypi/mkdocs","source":"pysec"}],"references":[{"url":"https://github.com/mkdocs/mkdocs","tags":["package","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nisdn/CVE-2021-40978","tags":["evidence","exploit","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/mkdocs/mkdocs/issues/2601","tags":["issue-tracking","report","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/nisdn/CVE-2021-40978/issues/1","tags":["issue-tracking","report","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40978","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mkdocs/mkdocs/pull/2604","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mkdocs/mkdocs/commit/1b15412f4caae476c262210315fd068d0521a833","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mkdocs/mkdocs/commit/57540911a0d632674dd23edec765189f96f84f6b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/mkdocs/mkdocs/releases/tag/1.2.3","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mkdocs/PYSEC-2021-878.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-qh9q-34h6-hcv9","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2024-07-02T18:07:46.527Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-40978","url":"https://www.cve.org/CVERecord?id=CVE-2021-40978","licence":"CVE Terms of Use","modified":"2024-08-04T02:59:30.392Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qh9q-34h6-hcv9","url":"https://github.com/advisories/GHSA-qh9q-34h6-hcv9","licence":"CC-BY-4.0","modified":"2024-10-01T19:21:31.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-40978","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40978","licence":"Public domain","modified":"2026-06-17T04:07:42.017Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-878","url":"https://osv.dev/vulnerability/PYSEC-2021-878","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:16.308Z"}],"updatedAt":"2026-11-25T22:58:04.363Z","epss":{"score":0.14984,"percentile":0.96797,"date":"2026-12-01T12:00:22.000Z"}}