CVE-2022-0691CWE-639

Authorization Bypass Through User-Controlled Key in unshiftio/url-parse

Medium · published February 21, 2022

CVSS v3.0
6.5
EPSS
2%
Percentile
82.5
In the wild
Unconfirmed
What it is

⚠️ A sneaky authorization bypass can slip through a user-controlled key like a surprise guest at a dinner party! Think of it as a restaurant where anyone can swap their reservation name to dine at the chef's table without any check — potentially allowing unwanted diners access to sensitive data or functions. If exploited, an attacker could manipulate the key and gain unauthorized access, allowing them to bypass restrictions on resources. This means they could potentially access sensitive data or perform actions they shouldn't be able to!

Put simply

Think of it as a restaurant where anyone can swap their reservation name to dine at the chef's table without any check — potentially allowing unwanted diners access to sensitive data or functions. This vulnerability in NPM's url-parse library allows attackers to bypass authorization checks by controlling the key, leading to unauthorized access to protected resources.

What to do

If exploited, an attacker could manipulate the key and gain unauthorized access, allowing them to bypass restrictions on resources. This means they could potentially access sensitive data or perform actions they shouldn't be able to! To mitigate this issue, immediately upgrade the url-parse library to version 1.5.9 or later. Also, review and tighten your authorization checks to ensure they are robust against such manipulations. You've got this! Follow these steps, and you'll be a security hero in no time! 🦸

The record
Technical detail
CVSS v3.0
6.5 · MEDIUM
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.02220 · 82.5th percentile
Weakness
CWE-639 · Authorization Bypass Through User-Controlled Key
Published
2022-02-21T00:00Z
EPSS history
Timeline
  • 21 FEB 00:00Z
    Authorization Bypass Through User-Controlled Key in unshiftio/url-parse
    cvelistv5