Vulnerabilities

8 via 13 paths

Dependencies

842

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 4
  • 3
Status
  • 8
  • 0
  • 0

critical severity

Embedded Malicious Code

  • Vulnerable module: size-sensor
  • Introduced through: echarts-for-react@3.0.6

Detailed paths

  • Introduced through: sentry@getsentry/sentry › echarts-for-react@3.0.6 › size-sensor@1.0.4

Overview

Affected versions of this package are vulnerable to Embedded Malicious Code that conceals a credential-stealing payload and worm propagation logic. A malicious actor associated with the "TeamPCP" or "Mini Shai-Hulud" campaign compromised a maintainer's access token; this allowed the attacker to publish over 600 tampered package versions to npm, primarily targeting the @antv ecosystem, along with other widely used packages like echarts-for-react, size-sensor, and jest-canvas-mock.

Attack Details

This supply chain attack is notable for successfully forging valid Sigstore provenance badges, meaning the malicious packages appear legitimate to standard provenance-verification tools. The attackers introduced the malware using a "phantom commit dropper," injecting an anomalous @antv/setup optional dependency that points directly to a malicious GitHub commit.

Malware Behavior

The heavily obfuscated payload is designed to execute during the package installation phase. It scans developer workstations and CI/CD pipelines to harvest high-value secrets, including AWS credentials, GitHub tokens, npm tokens, Vault tokens, and Kubernetes service-account material. The stolen data is compressed, encrypted, and exfiltrated to an external server. If the primary exfiltration route fails, the malware falls back on abusing stolen GitHub tokens to create Dune-themed repositories under the victim's account to stash the stolen data. The payload also contains worm capabilities, using stolen npm tokens to modify and republish further packages.

Remediation

Avoid using all malicious instances of the size-sensor package.

References

high severity
new

Uncontrolled Recursion

  • Vulnerable module: braces
  • Introduced through: ts-checker-rspack-plugin@1.6.2

Detailed paths

  • Introduced through: sentry@getsentry/sentry › ts-checker-rspack-plugin@1.6.2 › chokidar@3.6.0 › braces@3.0.3

Overview

braces is a Bash-like brace expansion, implemented in JavaScript.

Affected versions of this package are vulnerable to Uncontrolled Recursion in the recursive AST walkers, which lack depth guards. An attacker can supply deeply nested brace patterns that stay within the character limit to exhaust the call stack and crash the Node.js process with an uncaught RangeError.

Remediation

There is no fixed version for braces.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: zod
  • Introduced through: zod@4.3.5

Detailed paths

  • Introduced through: sentry@getsentry/sentry › zod@4.3.5

Overview

zod is a TypeScript-first schema declaration and validation library with static type inference

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the handleArrayResult parse logic in $ZodArray, which accumulates every validation issue for each failing element in a large array with no cap or early termination. An attacker can submit a large array to an application using an array schema without a length constraint, causing the process to allocate excessive issue objects and crash due to out-of-memory conditions.

Remediation

There is no fixed version for zod.

References

high severity
new

Inefficient Algorithmic Complexity

  • Vulnerable module: postcss-selector-parser
  • Introduced through: rehype-expressive-code@0.44.2

Detailed paths

  • Introduced through: sentry@getsentry/sentry › rehype-expressive-code@0.44.2 › expressive-code@0.44.2 › @expressive-code/core@0.44.2 › postcss-nested@6.2.0 › postcss-selector-parser@6.1.4
  • Introduced through: sentry@getsentry/sentry › rehype-expressive-code@0.44.2 › expressive-code@0.44.2 › @expressive-code/plugin-frames@0.44.2 › @expressive-code/core@0.44.2 › postcss-nested@6.2.0 › postcss-selector-parser@6.1.4
  • Introduced through: sentry@getsentry/sentry › rehype-expressive-code@0.44.2 › expressive-code@0.44.2 › @expressive-code/plugin-shiki@0.44.2 › @expressive-code/core@0.44.2 › postcss-nested@6.2.0 › postcss-selector-parser@6.1.4
  • Introduced through: sentry@getsentry/sentry › rehype-expressive-code@0.44.2 › expressive-code@0.44.2 › @expressive-code/plugin-text-markers@0.44.2 › @expressive-code/core@0.44.2 › postcss-nested@6.2.0 › postcss-selector-parser@6.1.4

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the uniqs helper and index-membership checks in src/parser.js when parsing flat selectors (e.g. .a.a.a...) containing a large number of class or ID tokens. The original implementation uses Array.indexOf inside a filter callback and repeated linear scans of the hasClass/hasId arrays, producing quadratic time complexity proportional to the number of tokens. An attacker who can supply selector input to the parser can trigger CPU exhaustion by providing a long flat selector, pinning a CPU core and causing the process to become unresponsive.

Remediation

Upgrade postcss-selector-parser to version 7.1.6 or higher.

References

high severity

Open Redirect

  • Vulnerable module: react-router
  • Introduced through: react-router@6.30.6 and react-router-dom@6.30.6

Detailed paths

  • Introduced through: sentry@getsentry/sentry › react-router@6.30.6
    Remediation: Upgrade to react-router@7.18.0.
  • Introduced through: sentry@getsentry/sentry › react-router-dom@6.30.6 › react-router@6.30.6
    Remediation: Upgrade to react-router-dom@7.18.0.

Overview

Affected versions of this package are vulnerable to Open Redirect via the navigation mechanisms when attacker-supplied paths containing a backslash are processed. An attacker can redirect users to unintended external sites by crafting malicious links or inputs.

Remediation

Upgrade react-router to version 7.18.0 or higher.

References

medium severity
new

Improper Validation of Specified Quantity in Input

  • Vulnerable module: sprintf-js
  • Introduced through: sprintf-js@1.0.3

Detailed paths

  • Introduced through: sentry@getsentry/sentry › sprintf-js@1.0.3

Overview

Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via unbounded precision specifiers passed without validation to the toFixed, toExponential, and toPrecision methods. An attacker who controls a format string can inject precision values exceeding ECMAScript limits, causing uncaught RangeError exceptions that abort the calling operation.

Remediation

There is no fixed version for sprintf-js.

References

medium severity

Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection')

  • Vulnerable module: react-router
  • Introduced through: react-router@6.30.6 and react-router-dom@6.30.6

Detailed paths

  • Introduced through: sentry@getsentry/sentry › react-router@6.30.6
    Remediation: Upgrade to react-router@7.18.0.
  • Introduced through: sentry@getsentry/sentry › react-router-dom@6.30.6 › react-router@6.30.6
    Remediation: Upgrade to react-router-dom@7.18.0.

Overview

Affected versions of this package are vulnerable to Use of Externally-Controlled Input to Select Classes or Code ('Unsafe Reflection') in the deserializeErrors function during SSR hydration. An attacker can cause unexpected constructor execution on the client, potentially resulting in outbound network traffic, by supplying crafted input that overwrites certain aspects of errors caught by the SSR process.

Note: This is only exploitable if the application is running in Framework Mode or Data Mode and performs manual SSR/hydration with code that allows attacker-controlled input to influence error deserialization.

Remediation

Upgrade react-router to version 7.18.0 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: zxcvbn
  • Introduced through: zxcvbn@4.4.2

Detailed paths

  • Introduced through: sentry@getsentry/sentry › zxcvbn@4.4.2

Overview

zxcvbn is a realistic password strength estimation

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the repeat_match functionality, due to the usage of an insecure regex in lazy_anchored variable.

PoC

const zxcvbn = require("zxcvbn");
attackStr = '\x00\x00' + ('\x00'.repeat(54773)) + '\n'
zxcvbn(attackStr)

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

There is no fixed version for zxcvbn.

References