{"schemaVersion":3,"id":"CVE-2026-21860","aliases":["ALPINE-CVE-2026-21860","GHSA-87hc-h4r5-73f7","PYSEC-2026-2044","UBUNTU-CVE-2026-21860","CGA-6fjf-v497-7966","CGA-822f-3r72-j38m","CGA-96gc-5jm5-45j3","CGA-9m22-54wm-454c","CGA-cp36-97f2-59v8","CGA-cvfm-9mm2-7pmc","CGA-j246-wfp8-gcjr","CGA-j96j-cp33-m8m5","CGA-q6r5-46mh-3fwr","CGA-wf4j-vrhw-fhw2","CGA-45f6-4jhr-h746","CGA-73fq-gcpm-pv55","CGA-946v-q74r-5675","CGA-hmjq-gxhc-xpq3","CGA-jx33-69wm-26cr","CGA-pprq-84r9-2w8q","CGA-ppx2-4qj4-mgfq","CGA-q98g-r26c-cm7h","CGA-rcgh-334v-fj6f","CGA-vj4f-9fr6-jjwx"],"status":"published","duplicateOf":null,"title":null,"description":"Werkzeug is a comprehensive WSGI web application library. Prior to version 3.1.5, Werkzeug's safe_join function allows path segments with Windows device names that have file extensions or trailing spaces. On Windows, there are special device names such as CON, AUX, etc that are implicitly present and readable in every directory. Windows still accepts them with any file extension, such as CON.txt, or trailing spaces such as CON. This issue has been patched in version 3.1.5.","dates":{"published":"2026-01-08T18:34:05.390Z","modified":"2026-01-08T18:50:34.504Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"4.0","versionLabel":"v4.0","source":"CVE.org","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Pypi","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Pypi","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":10,"impact":2.3,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Wolfi","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Chainguard","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.3,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00475,"percentile":0.39751,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.006999999999999975,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00482},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00475,"percentile":0.39751}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00482,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00475,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00475,"percentile":0.39751}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-67","name":"Improper Handling of Windows Device Names","description":"The product constructs pathnames from user input, but it does not handle or incorrectly handles a pathname containing a Windows device name such as AUX or CON. This typically leads to denial of service or an information exposure when the application attempts to process the pathname as a regular file.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/67.html"}],"affected":[{"vendor":"alpine","product":"py3-werkzeug","name":"py3-werkzeug","label":"py3-werkzeug","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/py3-werkzeug","purlType":"apk","versions":[{"text":"< 3.1.5-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.5-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"airflow-2","name":"airflow-2","label":"airflow-2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/airflow-2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"airflow-3","name":"airflow-3","label":"airflow-3","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/airflow-3","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"airflow-core-2","name":"airflow-core-2","label":"airflow-core-2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/airflow-core-2","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.10-ambassador","name":"py3.10-ambassador","label":"py3.10-ambassador","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.10-ambassador","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.11-ambassador","name":"py3.11-ambassador","label":"py3.11-ambassador","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.11-ambassador","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.11-azure-functions-worker","name":"py3.11-azure-functions-worker","label":"py3.11-azure-functions-worker","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.11-azure-functions-worker","purlType":"apk","versions":[{"text":"< 4.42.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.42.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.12-ambassador","name":"py3.12-ambassador","label":"py3.12-ambassador","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.12-ambassador","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.12-azure-functions-worker","name":"py3.12-azure-functions-worker","label":"py3.12-azure-functions-worker","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.12-azure-functions-worker","purlType":"apk","versions":[{"text":"< 4.42.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.42.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.13-ambassador","name":"py3.13-ambassador","label":"py3.13-ambassador","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.13-ambassador","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"chainguard","product":"py3.13-azure-functions-worker","name":"py3.13-azure-functions-worker","label":"py3.13-azure-functions-worker","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/py3.13-azure-functions-worker","purlType":"apk","versions":[{"text":"< 4.42.0-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.42.0-r0","eol":null,"hubHref":null},{"vendor":"chainguard","product":"superset-5.0","name":"superset-5.0","label":"superset-5.0","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/superset-5.0","purlType":"apk","versions":[{"text":"< 5.0.0-r12","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.0.0-r12","eol":null,"hubHref":null},{"vendor":"chainguard","product":"tensorflow-cpu-jupyter","name":"tensorflow-cpu-jupyter","label":"tensorflow-cpu-jupyter","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/tensorflow-cpu-jupyter","purlType":"apk","versions":[{"text":"< 2.20.0-r8","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.20.0-r8","eol":null,"hubHref":null},{"vendor":"wolfi","product":"airflow-3","name":"airflow-3","label":"airflow-3","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/airflow-3","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"py3.10-ambassador","name":"py3.10-ambassador","label":"py3.10-ambassador","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/py3.10-ambassador","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"py3.11-ambassador","name":"py3.11-ambassador","label":"py3.11-ambassador","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/py3.11-ambassador","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"py3.12-ambassador","name":"py3.12-ambassador","label":"py3.12-ambassador","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/py3.12-ambassador","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"wolfi","product":"py3.13-ambassador","name":"py3.13-ambassador","label":"py3.13-ambassador","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/py3.13-ambassador","purlType":"apk","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"python-werkzeug","name":"python-werkzeug","label":"python-werkzeug","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/python-werkzeug","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"pallets","product":"werkzeug","name":"werkzeug","label":"werkzeug","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.5","eol":null,"hubHref":"/vendor/pallets/werkzeug"},{"vendor":"palletsprojects","product":"werkzeug","name":"werkzeug","label":"werkzeug","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 3.1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.5","eol":null,"hubHref":"/vendor/palletsprojects/werkzeug"},{"vendor":"PyPI","product":"werkzeug","name":"werkzeug","label":"werkzeug","ecosystem":"PyPI","cpePart":null,"purl":"pkg:pypi/werkzeug","purlType":"pypi","versions":[{"text":"< 3.1.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 3.1.5","eol":null,"hubHref":null}],"affectedCount":22,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/pallets/werkzeug/security/advisories/GHSA-87hc-h4r5-73f7","label":"github.com/pallets/werkzeug/security/advisories/GHSA-87hc-h4r5-73f7","hostname":"github.com","tags":["X Refsource CONFIRM","WEB","REPORT","Advisory","Vendor Advisory"]},{"url":"https://github.com/pallets/werkzeug/commit/7ae1d254e04a0c33e241ac1cca4783ce6c875ca3","label":"github.com/pallets/werkzeug/commit/7ae1d254e04a0c33e241ac1cca4783ce6c875ca3","hostname":"github.com","tags":["X Refsource MISC","WEB","REPORT","FIX","Patch"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2026-21860","label":"security.alpinelinux.org/vuln/CVE-2026-21860","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-21860","label":"nvd.nist.gov/vuln/detail/CVE-2026-21860","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/pallets/werkzeug","label":"github.com/pallets/werkzeug","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pypi.org/project/werkzeug","label":"pypi.org/project/werkzeug","hostname":"pypi.org","tags":["PACKAGE"]},{"url":"https://github.com/advisories/GHSA-87hc-h4r5-73f7","label":"github.com/advisories/GHSA-87hc-h4r5-73f7","hostname":"github.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-21860","label":"ubuntu.com/security/CVE-2026-21860","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-21860","label":"www.cve.org/CVERecord?id=CVE-2026-21860","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21860.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/21xxx/CVE-2026-21860.json","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-4HV5-HJ7Q-C42V"]},"timeline":[{"kind":"published","date":"2026-01-08T18:34:05.390Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-01-08T18:50:34.504Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":25,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T01:31:49.714Z","stale":false,"partial":false}}