Undesired Behavior Affecting styled-components package, versions >=5.3.5 <5.3.7


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-STYLEDCOMPONENTS-3149924
  • published 28 Nov 2022
  • disclosed 28 Nov 2022
  • credit albertwangnz

Introduced: 28 Nov 2022

CVE NOT AVAILABLE CWE-438 Open this link in a new tab

How to fix?

Upgrade styled-components to version 5.3.7 or higher.

Overview

Affected versions of this package are vulnerable to Undesired Behavior via the postinstall.js file which looks for users using a ru time-zone to show a political protest message using the console.warn() function. Also, the absence of this file in the 5.3.4 version causes a crash when the package is installed.

CVSS Scores

version 3.1
Expand this section

Snyk

Recommended
4.8 medium
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    None
  • Integrity (I)
    Low
  • Availability (A)
    Low