CVE-2023-28154

Webpack 5 before 5.76.0 does not avoid cross-realm object access

Critical · published March 13, 2023

CVSS v3.1
9.8
EPSS
1%
Percentile
72.4
In the wild
Unconfirmed
What it is

🚨 A sneaky flaw in Webpack 5 allows cross-realm object access, letting attackers peek into the global object with just a crafty property! 🔥 Think of it like a party where an uninvited guest finds a way to sneak backstage and rummage through your private belongings while you're busy chatting with friends. That's exactly what this vulnerability does, giving attackers access to the real global environment without anyone noticing! An attacker could exploit this flaw to manipulate or leak sensitive data from the global object, absolutely devastating your application's security. Imagine the chaos if they start altering configurations or reading private tokens while you’re blissfully unaware!

Put simply

Think of it like a party where an uninvited guest finds a way to sneak backstage and rummage through your private belongings while you're busy chatting with friends. That's exactly what this vulnerability does, giving attackers access to the real global environment without anyone noticing! This vulnerability arises because the ImportParserPlugin.js mishandles magic comments, failing to restrict access properly. As a result, if an attacker controls a property of an untrusted object, they can gain unauthorized access to the global object.

What to do

An attacker could exploit this flaw to manipulate or leak sensitive data from the global object, absolutely devastating your application's security. Imagine the chaos if they start altering configurations or reading private tokens while you’re blissfully unaware! Immediately upgrade Webpack to version 5.76.0 or later to mitigate this vulnerability. Additionally, review your project's dependencies to ensure there are no untrusted objects that might be controlled by external inputs. Vigilantly audit your code for any other potential areas of vulnerability. You've got this! By following these steps, you'll shore up your defenses and be a security hero! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01409 · 72.4th percentile
Published
2023-03-13T00:00Z
EPSS history
Timeline
  • 13 MAR 00:00Z
    Webpack 5 before 5.76.0 does not avoid cross-realm object access
    cvelistv5