[AppSecAI Agent] webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header - #647
Open
conviso-platform-appsec-staging[bot] wants to merge 1 commit into
Conversation
…d Host or Origin header (Conviso Issue 1713857)
Conviso Security Gate — No Security Gate rule configuredNo No new findings were introduced by this pull request. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AppSecAI Agent
Issue ID: 1713857
Title: webpack-dev-server vulnerable to denial of service via a malformed Host or Origin header
Severity: MEDIUM
Type: ScaFinding
Description
Impact
An unauthenticated peer that can reach the
webpack-dev-serverprocess can terminate it by sending either a normal HTTP request with a malformedHostheader, or a WebSocket upgrade to the default/wsendpoint with a malformedOriginheader. The malformed header triggers an uncaught exception in the host-validation path and crashes the dev server process.Patches
Fixed in
webpack-dev-server5.2.6 by treating malformedHostandOriginheader values as invalid rather than throwing (see PR #5699).Workarounds
Keep the dev server bound to
localhost(the default) and do not expose it to untrusted networks.Fix Details
Security Fix: Upgrade webpack-dev-server to resolve DoS vulnerability
Summary
This PR addresses a medium-severity security vulnerability in
webpack-dev-server(CVE affecting versions prior to 5.2.6) by adding a resolution to enforce the use of a patched version.Vulnerability Details
webpack-dev-serverDescription
An unauthenticated peer that can reach the
webpack-dev-serverprocess can terminate it by sending either:Hostheader, or/wsendpoint with a malformedOriginheader.The malformed header triggers an uncaught exception in the host-validation path and crashes the dev server process.
Fix Applied
Added
"webpack-dev-server": "^5.2.6"to theresolutionsfield inpackage.json. This ensures that all transitive dependencies that pull inwebpack-dev-server(including those used by@docusaurus/coreand related packages) will use version 5.2.6 or later, which treats malformedHostandOriginheader values as invalid rather than throwing an uncaught exception.References
webpack-dev-server5.2.6This PR was automatically created by Conviso Platform Auto-Fix.