NetSight
hoch8.3

CVE-2026-76844

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 tha…

Auswirkung

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.

Ein Angreifer kann die Lücke über das Netzwerk ausnutzen, ohne Anmeldung, allerdings muss ein Nutzer beteiligt sein, etwa indem er Inhalte ansieht. Bei Erfolg: hohes Risiko, dass Daten ausgelesen werden.

Betroffene Pakete

ÖkosystemPaketBetroffenBehoben in
npmwebpack-dev-middleware< 7.4.5nicht erfasst

Betroffene Produkte · Webpack

ProduktBetroffene Versionen
Webpack-dev-middleware
ab 5.3.4 bis einschließlich 5.3.4
ab 6.1.2 bis einschließlich 6.1.3
ab 7.1.0 vor 7.4.6
ab 8.0.0 vor 8.3.0
Versionen 6.1.2 ≤6.1.3, 5.3.4 ≤5.3.4

Schwachstellenklasse

Referenzen