{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2021-40978","id":"CVE-2021-40978","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","descriptionLong":"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","published":"2021-10-07T13:23:41.000Z","updated":"2026-10-20T10:54:57.600427508Z","reserved":"2021-09-13T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"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","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"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","rating":"high","source":"NVD"},{"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","rating":"high","source":"OSV"},{"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","rating":"high","source":"GitHub"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"mkdocs","purl":"pkg:pypi/mkdocs","ranges":[">=1.2.2 <1.2.3"],"fixed":["1.2.3"],"advisory":"GHSA-qh9q-34h6-hcv9"}],"cwes":["CWE-22","CWE-12"],"aliases":["GHSA-qh9q-34h6-hcv9","PYSEC-2021-878"],"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/commit/1b15412f4caae476c262210315fd068d0521a833","tags":["web"]},{"url":"https://github.com/mkdocs/mkdocs/commit/57540911a0d632674dd23edec765189f96f84f6b","tags":["web"]},{"url":"https://github.com/mkdocs/mkdocs/releases/tag/1.2.3","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/mkdocs/PYSEC-2021-878.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-qh9q-34h6-hcv9","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.14984,"epssPercentile":0.96786,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2021-40978","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40978","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2021-40978","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qh9q-34h6-hcv9","ok":true,"note":"GHSA-qh9q-34h6-hcv9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2021-40978","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 15% with CVSS 7.5"],"attention":null}