webpack-dev-middleware 5.3.4, 6.1.2 through 6.1.3, 7.1.0 before 7.4.6, and 8.0.0 before 8.3.0 contains a path traversal vulnerability in getFilenameFromUrl that bypasses the fix for CVE-2024-29180: a publicPath without a trailing slash is matched by string prefix, and the '..' guard runs before that prefix is stripped. Unauthenticated attackers can request a path such as /assets../secret to read files one directory above the output directory when the middleware serves from the physical filesystem through writeToDisk or a custom outputFileSystem.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-22"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76844.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "6.1.2"
},
{
"last_affected": "6.1.3"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "7.1.0"
},
{
"fixed": "7.4.6"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "8.0.0"
},
{
"fixed": "8.3.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"introduced": "5.3.4"
},
{
"last_affected": "5.3.4"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
},
{
"range": [
{
"fixed": "13344e78b26d88fe9b7c8381a3860e248a52359b"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "cefccbac330c29052fc6dffe85fd292ea2ac782b"
}
],
"source": "REFERENCES_COMMIT"
},
{
"original_tag": "v8.3.0",
"range": [
{
"fixed": "1abbf0898f1ca6cb1f8cc42b7469c7c0c45a5787"
}
],
"source": "REFERENCES_TAG"
},
{
"original_tag": "v7.4.6",
"range": [
{
"fixed": "70b3c336203f79d01eb3bde1a08fe5bb0a773931"
}
],
"source": "REFERENCES_TAG"
}
]
}