VDB
Sign up
MEDIUM

GHSA-vcc3-ghjq-m6fr

decode-uri-component: Denial of service via exponential decoding of malformed percent-encoded input

Quick fix

GHSA-vcc3-ghjq-m6fr — decode-uri-component: upgrade to the fixed version with the command below.

npm install decode-uri-component@0.5.0

Details

### Impact An attacker who can supply input to `decodeUriComponent()` (directly or via a dependency that uses this package on URL/query/path data) can cause excessive CPU usage and application unresponsiveness. This is an availability issue; there is no known memory corruption, data disclosure, or remote code execution impact.

### Patches Upgrade to `decode-uri-component@0.5.0`.

### Workarounds Limit the size of the input.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm/decode-uri-component
Introduced in: 0Fixed in: 0.5.0
Fixnpm install decode-uri-component@0.5.0

References