Vulnerabilities

59 via 208 paths

Dependencies

950

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 3
  • 24
  • 20
  • 12
Status
  • 59
  • 0
  • 0

critical severity

Use of Weak Hash

  • Vulnerable module: @angular/common
  • Introduced through: @angular/common@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/common@19.0.5
    Remediation: Upgrade to @angular/common@20.3.25.

Overview

Affected versions of this package are vulnerable to Use of Weak Hash due to the use of a weak 32-bit hash in the HttpTransferCache. When a victim visits a crafted link containing the colliding parameter, the SSR process executes both the search request and the profile request. Due to the hash collision, the search response overwrites the profile response in the TransferState cache.

Workaround

This vulnerability can be mitigated by configuring HTTP requests to skip transfer caching for sensitive endpoints or by disabling the HTTP transfer cache globally in the application bootstrap configuration.

Remediation

Upgrade @angular/common to version 20.3.25, 21.2.17, 22.0.1 or higher.

References

critical severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: @angular/ssr
  • Introduced through: @angular/ssr@19.0.6

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/ssr@19.0.6
    Remediation: Upgrade to @angular/ssr@19.2.21.

Overview

@angular/ssr is a the Angular server side rendering utilities.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the request handling pipeline due to improper validation of user-controlled HTTP headers such as Host and X-Forwarded-*. An attacker can redirect internal server requests to arbitrary external or internal destinations, potentially exfiltrating sensitive data or probing internal networks by manipulating these headers to influence URL resolution and request routing.

Note:

This is only exploitable if the application uses server-side rendering, performs HTTP requests using relative URLs or constructs URLs from unvalidated headers, and the infrastructure does not sanitize or validate incoming headers.

Workaround

This vulnerability can be mitigated by using absolute URLs for API requests and implementing strict header validation middleware to enforce trusted hostnames and numeric ports.

Remediation

Upgrade @angular/ssr to version 19.2.21, 20.3.17, 21.1.5, 21.2.0-rc.0 or higher.

References

critical severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: koa
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.

Overview

koa is a Koa web app framework

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the parsing of X-Forwarded-Proto and X-Forwarded-Host HTTP headers.

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

Upgrade koa to version 0.21.2, 1.7.1, 2.15.4, 3.0.0-alpha.3 or higher.

References

high severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: @angular/platform-server
  • Introduced through: @angular/platform-server@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/platform-server@19.0.5
    Remediation: Upgrade to @angular/platform-server@19.2.22.

Overview

@angular/platform-server is an Angular - library for using Angular in Node.js

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the processing of absolute-form URLs in the server-side rendering engine. An attacker can redirect internal HTTP requests to an attacker-controlled server by supplying a crafted request URL, potentially exposing sensitive internal APIs or metadata services.

Workaround

This vulnerability can be mitigated by implementing strict URL validation in the server entry point to ensure that incoming request URLs are validated against a known list of trusted hostnames or normalized to a relative path before being passed to the rendering functions.

Remediation

Upgrade @angular/platform-server to version 19.2.22, 20.3.21, 21.2.13, 22.0.0-next.12 or higher.

References

high severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: @angular/ssr
  • Introduced through: @angular/ssr@19.0.6

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/ssr@19.0.6
    Remediation: Upgrade to @angular/ssr@19.2.18.

Overview

@angular/ssr is a the Angular server side rendering utilities.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the createRequestUrl function. An attacker can cause the server to make arbitrary HTTP requests to external domains by supplying a specially crafted request path that begins with double forward slashes or backslashes, which manipulates the URL resolution process and results in subsequent server-side HTTP requests being directed to attacker-controlled endpoints.

Remediation

Upgrade @angular/ssr to version 19.2.18, 20.3.6, 21.0.0-next.8 or higher.

References

high severity

Infinite loop

  • Vulnerable module: image-size
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 less@4.1.3 image-size@0.5.5

Overview

Affected versions of this package are vulnerable to Infinite loop in the extractPartialStreams() and corresponding extraction functions for HEIF, JP2, and JXL. An attacker supplying an image whose requested box declares a size of zero can hang the parser indefinitely.

Note: This is a bypass of the fix for the vulnerability described in CVE-2025-71319.

Remediation

There is no fixed version for image-size.

References

high severity

Infinite loop

  • Vulnerable module: image-size
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 less@4.1.3 image-size@0.5.5

Overview

Affected versions of this package are vulnerable to Infinite loop in icns.js. An ICNS file with an icon entry whose declared length is zero can hang the parser indefinitely.

Remediation

There is no fixed version for image-size.

References

high severity

HTTP Header Injection

  • Vulnerable module: koa
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.

Overview

koa is a Koa web app framework

Affected versions of this package are vulnerable to HTTP Header Injection via the hostname function in the. request.js file. An attacker can manipulate the value hostname by sending a specially crafted HTTP Host header containing an @ symbol, which can lead to the generation of attacker-controlled URLs or influence routing decisions.

PoC

Setup: `` js // server.js const Koa = require('koa'); const app = new Koa();

// Simulates password reset URL generation (common vulnerable pattern) app.use(async ctx => { if (ctx.path === '/forgot-password') { const resetToken = 'abc123securtoken'; const resetUrl = ${ctx.protocol}://${ctx.hostname}/reset?token=${resetToken};

ctx.body = {
  message: 'Password reset link generated',
  resetUrl: resetUrl,
  debug: {
    rawHost: ctx.get('Host'),
    parsedHostname: ctx.hostname,
    origin: ctx.origin,
    protocol: ctx.protocol
  }
};

} });

app.listen(3000, () => console.log('Server on http://localhost:3000'));

Exploit:

curl -H "Host: evil.com:fake@localhost:3000" http://localhost:3000/forgot-password

## Remediation
Upgrade `koa` to version 2.16.4, 3.1.2 or higher.
## References
- [GitHub Commit](https://github.com/koajs/koa/commit/55ab9bab044ead4e82c70a30a4f9dc0fc9c1b6df)
- [GitHub Commit](https://github.com/koajs/koa/commit/b76ddc01fdb703e51652b0fd131d16394cadcfeb)

high severity

Inefficient Algorithmic Complexity

  • Vulnerable module: minimatch
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.6.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.

Overview

minimatch is a minimal matching utility.

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the matchOne function. An attacker can cause significant delays in processing and stall the event loop by supplying specially crafted glob patterns containing multiple non-adjacent GLOBSTAR segments.

Remediation

Upgrade minimatch to version 3.1.3, 4.2.5, 5.1.8, 6.2.2, 7.4.8, 8.0.6, 9.0.7, 10.2.3 or higher.

References

high severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: minimatch
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.6.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.3.

Overview

minimatch is a minimal matching utility.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the AST class, caused by catastrophic backtracking when an input string contains many * characters in a row, followed by an unmatched character.

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

Upgrade minimatch to version 3.1.3, 4.2.4, 5.1.7, 6.2.1, 7.4.7, 8.0.5, 9.0.6, 10.2.1 or higher.

References

high severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: minimatch
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.6.3.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@20.5.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 @nx/devkit@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0 minimatch@9.0.3
    Remediation: Upgrade to @nx/angular@22.5.4.

Overview

minimatch is a minimal matching utility.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS). An attacker can cause excessive resource consumption and application unresponsiveness by supplying specially crafted nested extglob patterns that trigger catastrophic backtracking in the regular expression engine.

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

Upgrade minimatch to version 8.0.6, 9.0.7, 10.2.3 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: qs
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 qs@6.11.0
    Remediation: Upgrade to express@4.22.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 body-parser@1.20.2 qs@6.11.0
    Remediation: Upgrade to express@4.22.0.

Overview

qs is a querystring parser that supports nesting and arrays, with a depth limit.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via improper enforcement of the arrayLimit option in bracket notation parsing. An attacker can exhaust server memory and cause application unavailability by submitting a large number of bracket notation parameters - like a[]=1&a[]=2 - in a single HTTP request.

PoC


const qs = require('qs');
const attack = 'a[]=' + Array(10000).fill('x').join('&a[]=');
const result = qs.parse(attack, { arrayLimit: 100 });
console.log(result.a.length);  // Output: 10000 (should be max 100)

Remediation

Upgrade qs to version 6.14.1 or higher.

References

high severity

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: ws
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@20.3.2.

Overview

ws is a simple to use websocket client, server and console for node.js.

Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) when handling a large number of very small fragments and data chunks. An attacker can cause excessive memory allocation and OOM by sending a high volume of tiny WebSocket frames

Workaround

This vulnerability can be mitigated by lowering the value of the maxPayload option.

PoC

import { WebSocket, WebSocketServer } from 'ws';

const wss = new WebSocketServer({ port: 0 }, function () {
  const data = Buffer.alloc(1);
  const options = { fin: false };
  const { port } = wss.address();
  const ws = new WebSocket(`ws://localhost:${port}`);

  ws.on('open', function () {
    (function send() {
      ws.send(data, options, function (err) {
        if (err) return;
        send();
      });
    })();
  });

  ws.on('error', console.error);
  ws.on('close', function (code, reason) {
    console.log(`client close - code: ${code} reason: ${reason.toString()}`);
  });
});

wss.on('connection', function (ws) {
  ws.on('error', console.error);
  ws.on('close', function (code, reason) {
    console.log(`server close - code: ${code} reason: ${reason.toString()}`);
  });
});

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade ws to version 5.2.5, 6.2.4, 7.5.11, 8.21.0 or higher.

References

high severity

Modification of Assumed-Immutable Data

  • Vulnerable module: @angular/core
  • Introduced through: @angular/core@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/core@19.0.5
    Remediation: Upgrade to @angular/core@20.3.25.

Overview

@angular/core is a package that lets you write client-side web applications as if you had a smarter browser. It also lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly.

Affected versions of this package are vulnerable to Modification of Assumed-Immutable Data via document.getElementById('ng-state'), during client-side SSR hydration, which enables DOM clobbering. An attacker can inject malicious JSON payloads into the application's TransferState cache by introducing a DOM element with a predictable identifier before the legitimate state script is parsed, causing forged API responses to be served to users and leading to the execution of arbitrary scripts, privilege escalation, or UI manipulation.

Workaround

This vulnerability can be mitigated by sanitizing or prefixing dynamic IDs to prevent user-controlled values from being used directly, or by configuring a unique, non-predictable application ID to change the state element's identifier.

Remediation

Upgrade @angular/core to version 20.3.25, 21.2.17, 22.0.1 or higher.

References

high severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/compiler
  • Introduced through: @angular/compiler@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/compiler@19.0.5
    Remediation: Upgrade to @angular/compiler@19.2.17.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via incomplete sanitization of certain SVG and MathML attributes, including xlink:href, math|href, as well as the attributeName attribute of SVG animation elements when it is bound to href or xlink:href. An attacker can execute arbitrary JavaScript code in the context of the application by injecting a javascript: URL payload into these attributes, which is then triggered either by user interaction or automatically through animation.

Workaround

This vulnerability can be mitigated by:

  1. Ensuring that data bound to the vulnerable attributes is never sourced from untrusted user input

  2. Avoiding affected template bindings

  3. Not binding untrusted data to the attributeName attribute of SVG animation elements

  4. Enabling a robust Content Security Policy (CSP) that disallows javascript: URLs.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/compiler to version 19.2.17, 20.3.15, 21.0.2 or higher.

References

high severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: @angular/platform-server
  • Introduced through: @angular/platform-server@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/platform-server@19.0.5
    Remediation: Upgrade to @angular/platform-server@19.2.23.

Overview

@angular/platform-server is an Angular - library for using Angular in Node.js

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via a parser differential between the strict WHATWG URL parser used for allowlist validation and the lenient Domino URL parser used to initialize the server emulated DOM. An attacker can redirect server-side outgoing requests to arbitrary external endpoints and potentially inject malicious content into the rendered HTML by sending specially crafted HTTP requests with malformed Host headers or absolute-form request URIs.

Note: This is only exploitable if the application is configured for server-side rendering, reconstructs request URLs from raw client inputs, performs outbound backend API requests using relative paths, and has the allowedHosts option enabled.

Remediation

Upgrade @angular/platform-server to version 19.2.23, 20.3.22, 21.2.15, 22.0.0-rc.2 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: @angular/common
  • Introduced through: @angular/common@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/common@19.0.5
    Remediation: Upgrade to @angular/common@19.2.23.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the formatNumber function when the digitsInfo parameter is controlled by untrusted user input. An attacker can exhaust system resources and cause application unavailability by supplying a specially crafted digitsInfo string with excessively large fraction digit values.

Note: This is only exploitable if the application uses number formatting utilities and allows untrusted input to control the digitsInfo parameter.

Remediation

Upgrade @angular/common to version 19.2.23, 20.3.22, 21.2.15, 22.0.0-rc.2 or higher.

References

high severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: @angular/common
  • Introduced through: @angular/common@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/common@19.0.5
    Remediation: Upgrade to @angular/common@20.3.25.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the formatDate function when processing an excessively long or attacker-controlled date format string. An attacker can cause high CPU and memory consumption, leading to application unavailability or browser unresponsiveness by supplying a maliciously crafted format string.

Note: This is only exploitable if the application formats dates using the vulnerable utility or pipe and the format string is customizable or controlled by untrusted user input.

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

Upgrade @angular/common to version 20.3.25, 21.2.17, 22.0.1 or higher.

References

high severity

Asymmetric Resource Consumption (Amplification)

  • Vulnerable module: body-parser
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 body-parser@1.20.2
    Remediation: Upgrade to express@4.20.0.

Overview

Affected versions of this package are vulnerable to Asymmetric Resource Consumption (Amplification) via the extendedparser and urlencoded functions when the URL encoding process is enabled. An attacker can flood the server with a large number of specially crafted requests.

Remediation

Upgrade body-parser to version 1.20.3 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: qs
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 qs@6.11.0
    Remediation: Upgrade to express@4.22.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 body-parser@1.20.2 qs@6.11.0
    Remediation: Upgrade to express@4.22.0.

Overview

qs is a querystring parser that supports nesting and arrays, with a depth limit.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via the parseArrayValue function when the comma option is in use. An attacker can exhaust system memory by submitting a parameter containing a large number of comma-separated values, resulting in the allocation of excessively large arrays.

Note: This is only exploitable if the comma option is explicitly set to true. arrayLimit is properly enforced for index and bracket notation.

PoC

const qs = require('qs');

const payload = 'a=' + ','.repeat(25);  // 26 elements after split (bypasses arrayLimit: 5)
const options = { comma: true, arrayLimit: 5, throwOnLimitExceeded: true };

try {
  const result = qs.parse(payload, options);
  console.log(result.a.length);  // Outputs: 26 (bypass successful)
} catch (e) {
  console.log('Limit enforced:', e.message);  // Not thrown
}

Remediation

Upgrade qs to version 6.14.2 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: serialize-javascript
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 copy-webpack-plugin@10.2.4 serialize-javascript@6.0.2
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 css-minimizer-webpack-plugin@5.0.1 serialize-javascript@6.0.2
    Remediation: Upgrade to @nx/angular@22.6.0.

Overview

serialize-javascript is a package to serialize JavaScript to a superset of JSON that includes regular expressions and functions.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the serialize function when handling specially crafted array-like objects with a very large length property. An attacker can cause excessive CPU consumption and make the application unresponsive by submitting such objects for serialization.

Note: While direct exploitation is difficult, it becomes a high-priority threat if the environment is also vulnerable to prototype pollution or insecure YAML deserialization.

Remediation

Upgrade serialize-javascript to version 7.0.5 or higher.

References

high severity

Insertion of Sensitive Information Into Sent Data

  • Vulnerable module: @angular/common
  • Introduced through: @angular/common@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/common@19.0.5
    Remediation: Upgrade to @angular/common@19.2.16.

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data via the HttpClient which has a built-in XSRF protection mechanism. An attacker can obtain sensitive authentication tokens by crafting requests using protocol-relative URLs that cause the token to be sent to domains under the attacker's control.

Note: This is only exploitable if XSRF protection is enabled and the application allows requests to protocol-relative URLs.

Workaround

This vulnerability can be mitigated by avoiding the use of protocol-relative URLs (those starting with //) in requests and ensuring all backend communication URLs are either relative paths or fully qualified, trusted absolute URLs.

Remediation

Upgrade @angular/common to version 19.2.16, 20.3.14, 21.0.1 or higher.

References

high severity
new

Insufficient Verification of Data Authenticity

  • Vulnerable module: @angular/common
  • Introduced through: @angular/common@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/common@19.0.5
    Remediation: Upgrade to @angular/common@20.3.27.

Overview

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity in the HttpTransferCache used for server-side rendering, which builds the transfer-cache key by joining repeated HttpParams values with commas so that distinct parameter shapes produce the same key. An attacker can poison the SSR transfer cache and cause one request's response to be served for another by sending a request whose comma-separated scalar value, such as role=user,admin, serializes identically to a legitimate request built with repeated parameters, such as append('role', 'user').append('role', 'admin'). This affects SSR applications using HttpClient where the same URL is requested with repeated query parameters.

Workaround

This vulnerability can be avoided by disabling the transfer cache for the affected requests with { transferCache: false }, or globally with the withNoHttpTransferCache() provider, which removes the ambiguous cached responses at the cost of the SSR caching optimization.

Remediation

Upgrade @angular/common to version 20.3.27, 21.2.19, 22.0.2 or higher.

References

high severity

Arbitrary Code Injection

  • Vulnerable module: serialize-javascript
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 copy-webpack-plugin@10.2.4 serialize-javascript@6.0.2
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 css-minimizer-webpack-plugin@5.0.1 serialize-javascript@6.0.2
    Remediation: Upgrade to @nx/angular@22.6.0.

Overview

serialize-javascript is a package to serialize JavaScript to a superset of JSON that includes regular expressions and functions.

Affected versions of this package are vulnerable to Arbitrary Code Injection. An object like {"foo": /1"/, "bar": "a\"@__R-<UID>-0__@"} would be serialized as {"foo": /1"/, "bar": "a\/1"/}, meaning an attacker could escape out of bar if they controlled both foo and bar and were able to guess the value of <UID>. UID is generated once on startup, is chosen using Math.random() and has a keyspace of roughly 4 billion, so within the realm of an online attack.

PoC

eval('('+ serialize({"foo": /1" + console.log(1)/i, "bar": '"@__R-<UID>-0__@'}) + ')');

Remediation

Upgrade serialize-javascript to version 7.0.3 or higher.

References

high severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/core
  • Introduced through: @angular/core@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/core@19.0.5
    Remediation: Upgrade to @angular/core@19.2.19.

Overview

@angular/core is a package that lets you write client-side web applications as if you had a smarter browser. It also lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the i18n pipeline when HTML from translated content in ICU messages is not properly sanitized. An attacker can execute arbitrary JavaScript in the application origin by compromising the translation file (such as xliff or xtb) and injecting malicious content.

Note:

This is only exploitable if the application uses Angular i18n, includes one or more ICU messages, renders an ICU message, and does not defend against script injection via a strict content security policy.

Workaround

This vulnerability can be mitigated by reviewing and verifying translated content received from untrusted third parties before incorporating it, enabling strict CSP controls to block unauthorized JavaScript, and enabling Trusted Types to enforce proper HTML sanitization.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/core to version 19.2.19, 20.3.17, 21.1.6, 21.2.0 or higher.

References

high severity

Race Condition

  • Vulnerable module: @angular/platform-server
  • Introduced through: @angular/platform-server@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/platform-server@19.0.5
    Remediation: Upgrade to @angular/platform-server@19.2.15.

Overview

@angular/platform-server is an Angular - library for using Angular in Node.js

Affected versions of this package are vulnerable to Race Condition between multiple concurrent requests in the global platform injector, when using the bootstrapApplication, getPlatform, or destroyPlatform functions. This allows data (including sensitive data) to be leaked between requests and included in rendered content or response headers for the wrong request.

Note: The CLI is vulnerable even if an application is not explicitly using getPlatform, and exposes this vulnerability if exposed to remote connections.

Workaround

This vulnerability can be avoided by disabling SSR via Server Routes or builder options, removing all asynchronous behavior from custom bootstrap functions, removing uses of getPlatform() in application code, and/or ensuring that the server build defines ngJitMode as false.

Remediation

Upgrade @angular/platform-server to version 18.2.14, 19.2.15, 20.3.0, 21.0.0-next.3 or higher.

References

high severity

Race Condition

  • Vulnerable module: @angular/ssr
  • Introduced through: @angular/ssr@19.0.6

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/ssr@19.0.6
    Remediation: Upgrade to @angular/ssr@19.2.16.

Overview

@angular/ssr is a the Angular server side rendering utilities.

Affected versions of this package are vulnerable to Race Condition between multiple concurrent requests in the global platform injector, when using the bootstrapApplication, getPlatform, or destroyPlatform functions. This allows data (including sensitive data) to be leaked between requests and included in rendered content or response headers for the wrong request.

Note: The CLI is vulnerable even if an application is not explicitly using getPlatform, and exposes this vulnerability if exposed to remote connections.

Workaround

This vulnerability can be avoided by disabling SSR via Server Routes or builder options, removing all asynchronous behavior from custom bootstrap functions, removing uses of getPlatform() in application code, and/or ensuring that the server build defines ngJitMode as false.

Remediation

Upgrade @angular/ssr to version 18.2.21, 19.2.16, 20.3.0, 21.0.0-next.3 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: @angular/ssr
  • Introduced through: @angular/ssr@19.0.6

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/ssr@19.0.6
    Remediation: Upgrade to @angular/ssr@19.2.21.

Overview

@angular/ssr is a the Angular server side rendering utilities.

Affected versions of this package are vulnerable to Open Redirect via the internal URL processing logic when handling the X-Forwarded-Prefix header. An attacker can cause users to be redirected to arbitrary external domains by supplying a specially crafted header value containing multiple leading slashes, which is insufficiently sanitized before being used in the Location header. This can facilitate large-scale phishing and SEO hijacking attacks.

Note:

This is only exploitable if the application uses Angular SSR, has routes that perform internal redirects, the infrastructure passes the X-Forwarded-Prefix header to the SSR process without sanitization, and the cache does not vary on the X-Forwarded-Prefix header.

Workaround

This vulnerability can be mitigated by sanitizing the X-Forwarded-Prefix header in the server middleware to remove all leading slashes before the Angular engine processes the request.

Remediation

Upgrade @angular/ssr to version 19.2.21, 20.3.17, 21.1.5, 21.2.0-rc.0 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: path-to-regexp
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 path-to-regexp@0.1.7
    Remediation: Upgrade to express@4.22.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) when including multiple regular expression parameters in a single segment, separated by something that is not a period (.). Poor performance will block the event loop and can lead to a DoS.

Note:

This is caused by an incomplete fix for CVE-2024-45296 as it only prevents ambiguity for two parameters. With three or more, the generated lookahead does not block single separator characters, so capture groups overlap and cause catastrophic backtracking.

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

Upgrade path-to-regexp to version 0.1.13 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: path-to-regexp
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 path-to-regexp@0.1.7
    Remediation: Upgrade to express@4.20.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) when including multiple regular expression parameters in a single segment, which will produce the regular expression /^\/([^\/]+?)-([^\/]+?)\/?$/, if two parameters within a single segment are separated by a character other than a / or .. Poor performance will block the event loop and can lead to a DoS.

Note: While the 8.0.0 release has completely eliminated the vulnerable functionality, prior versions that have received the patch to mitigate backtracking may still be vulnerable if custom regular expressions are used. So it is strongly recommended for regular expression input to be controlled to avoid malicious performance degradation in those versions. This behavior is enforced as of version 7.1.0 via the strict option, which returns an error if a dangerous regular expression is detected.

Workaround

This vulnerability can be avoided by using a custom regular expression for parameters after the first in a segment, which excludes - and /.

PoC

/a${'-a'.repeat(8_000)}/a

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

Upgrade path-to-regexp to version 0.1.10, 1.9.0, 3.3.0, 6.3.0, 8.0.0 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: path-to-regexp
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 path-to-regexp@0.1.7
    Remediation: Upgrade to express@4.21.2.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) when including multiple regular expression parameters in a single segment, when the separator is not . (e.g. no /:a-:b). Poor performance will block the event loop and can lead to a DoS.

Note:

This issue is caused due to an incomplete fix for CVE-2024-45296.

Workarounds

This can be mitigated by avoiding using two parameters within a single path segment, when the separator is not . (e.g. no /:a-:b). Alternatively, the regex used for both parameters can be defined to ensure they do not overlap to allow backtracking.

PoC

/a${'-a'.repeat(8_000)}/a

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

Upgrade path-to-regexp to version 0.1.12 or higher.

References

medium severity

Use of Uninitialized Resource

  • Vulnerable module: ws
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@22.6.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 ws@8.18.0
    Remediation: Upgrade to @nx/angular@20.3.2.

Overview

ws is a simple to use websocket client, server and console for node.js.

Affected versions of this package are vulnerable to Use of Uninitialized Resource in the websocket.close() implementation in the Sender class, which exposes uninitialized memory when a TypedArray is provided as the reason argument.

Note: The project maintainers note that this "flaw is only exploitable through misuse that is unlikely in practice".

PoC

import { deepStrictEqual } from 'node:assert';
import { WebSocket, WebSocketServer } from 'ws';

const wss = new WebSocketServer(
  { port: 0, skipUTF8Validation: true },
  function () {
    const { port } = wss.address();
    const ws = new WebSocket(`ws://localhost:${port}`, {
      skipUTF8Validation: true
    });

    ws.on('close', function (code, reason) {
      deepStrictEqual(reason, Buffer.alloc(80));
    });
  }
);

wss.on('connection', function (ws) {
  ws.close(1000, new Float32Array(20));
});

Remediation

Upgrade ws to version 8.20.1 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/compiler
  • Introduced through: @angular/compiler@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/compiler@19.0.5
    Remediation: Upgrade to @angular/compiler@19.2.18.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via improper handling of namespaced elements and attributes during template compilation and sanitization. An attacker can execute arbitrary JavaScript in the user's browser by injecting specially crafted templates or tag structures with custom namespaces that bypass script-stripping logic and attribute sanitizers.

Note: This is only exploitable if the application accepts user-controlled template input, supports namespace parsing in templates, and does not perform additional input sanitization before processing with the template compiler.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/compiler to version 19.2.18, 20.3.22, 21.2.15, 22.0.0-rc.2 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/core
  • Introduced through: @angular/core@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/core@19.0.5
    Remediation: Upgrade to @angular/core@19.2.18.

Overview

@angular/core is a package that lets you write client-side web applications as if you had a smarter browser. It also lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via improper handling of namespaced elements and attributes during template compilation and sanitization. An attacker can execute arbitrary JavaScript in the user's browser by injecting specially crafted templates or tag structures with custom namespaces that bypass script-stripping logic and attribute sanitizers.

Note: This is only exploitable if the application accepts user-controlled template input, supports namespace parsing in templates, and does not perform additional input sanitization before processing with the template compiler.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/core to version 19.2.18, 20.3.22, 21.2.15, 22.0.0-rc.2 or higher.

References

medium severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: @angular/platform-server
  • Introduced through: @angular/platform-server@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/platform-server@19.0.5
    Remediation: Upgrade to @angular/platform-server@19.2.21.

Overview

@angular/platform-server is an Angular - library for using Angular in Node.js

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the URL parsing during Server-Side Rendering (SSR). An attacker can cause the server to make arbitrary HTTP requests to attacker-controlled domains by sending specially crafted requests with protocol-relative or backslash-prefixed URLs. This can result in exposure of internal APIs or metadata services if the server performs HTTP requests using relative URLs or constructs URLs based on the manipulated origin.

Note:

Affected APIs (used with Angular SSR):

  • renderModule
  • renderApplication
  • CommonEngine

Workaround

This vulnerability can be mitigated by implementing middleware to sanitize incoming request URLs, ensuring they start with a single forward slash and removing any leading backslashes or multiple slashes.

Remediation

Upgrade @angular/platform-server to version 19.2.21, 20.3.19, 21.2.9, 22.0.0-next.8 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: @angular/ssr
  • Introduced through: @angular/ssr@19.0.6

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/ssr@19.0.6
    Remediation: Upgrade to @angular/ssr@19.2.25.

Overview

@angular/ssr is a the Angular server side rendering utilities.

Affected versions of this package are vulnerable to Open Redirect via improper handling of the X-Forwarded-Prefix header. An attacker can manipulate internal redirects or server-side requests by injecting encoded path traversal sequences, which are decoded and used by the application logic. This can result in unintended redirects or requests to internal or external endpoints.

Note: This is only exploitable if the application is configured to trust proxy headers and is deployed behind a proxy that forwards the X-Forwarded-Prefix header without prior sanitization.

Remediation

Upgrade @angular/ssr to version 19.2.25, 20.3.25, 21.2.9, 22.0.0-next.7 or higher.

References

medium severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: body-parser
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 body-parser@1.20.2
    Remediation: Upgrade to express@4.22.0.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to invalid limit option handling in normalizeOptions in lib/utils.js. An attacker can force oversized request bodies through by supplying an application configuration value for limit that parses to null, such as an unparseable string or NaN. When an app relies on limit to cap body size, the parser skips enforcement and accepts arbitrarily large payloads, driving excessive memory and CPU usage and degrading or crashing the service.

Remediation

Upgrade body-parser to version 1.20.6, 2.3.0 or higher.

References

medium severity

  • Vulnerable module: cookie
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 cookie@0.5.0
    Remediation: Upgrade to express@4.21.1.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the cookie name, path, or domain, which can be used to set unexpected values to other cookie fields.

Workaround

Users who are not able to upgrade to the fixed version should avoid passing untrusted or arbitrary values for the cookie fields and ensure they are set by the application instead of user input.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade cookie to version 0.7.0 or higher.

References

medium severity

Improper Validation of Specified Index, Position, or Offset in Input

  • Vulnerable module: uuid
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 webpack-dev-server@5.2.6 sockjs@0.3.24 uuid@8.3.2

Overview

uuid is a RFC4122 (v1, v4, and v5) compliant UUID library.

Affected versions of this package are vulnerable to Improper Validation of Specified Index, Position, or Offset in Input due to accepting external output buffers but not rejecting out-of-range writes (small buf or large offset). This inconsistency allows silent partial writes into caller-provided buffers.

PoC

cd /home/StrawHat/uuid
npm ci
npm run build

node --input-type=module -e "
import {v4,v5,v6} from './dist-node/index.js';
const ns='6ba7b810-9dad-11d1-80b4-00c04fd430c8';
for (const [name,fn] of [
  ['v4',()=>v4({},new Uint8Array(8),4)],
  ['v5',()=>v5('x',ns,new Uint8Array(8),4)],
  ['v6',()=>v6({},new Uint8Array(8),4)],
]) {
  try { fn(); console.log(name,'NO_THROW'); }
  catch(e){ console.log(name,'THREW',e.name); }
}"

Remediation

Upgrade uuid to version 11.1.1, 14.0.0 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: express
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3
    Remediation: Upgrade to express@4.19.2.

Overview

express is a minimalist web framework.

Affected versions of this package are vulnerable to Open Redirect due to the implementation of URL encoding using encodeurl before passing it to the location header. This can lead to unexpected evaluations of malformed URLs by common redirect allow list implementations in applications, allowing an attacker to bypass a properly implemented allow list and redirect users to malicious sites.

Remediation

Upgrade express to version 4.19.2, 5.0.0-beta.3 or higher.

References

medium severity

Exposed Dangerous Method or Function

  • Vulnerable module: nx
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/workspace@20.3.0 nx@20.3.0
    Remediation: Upgrade to @nx/angular@22.7.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0
    Remediation: Upgrade to @nx/angular@22.7.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/eslint@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0
    Remediation: Upgrade to @nx/angular@22.7.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0
    Remediation: Upgrade to @nx/angular@22.7.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0
    Remediation: Upgrade to @nx/angular@22.7.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/webpack@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0
    Remediation: Upgrade to @nx/angular@22.7.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @nx/web@20.3.0 @nx/js@20.3.0 @nx/workspace@20.3.0 nx@20.3.0
    Remediation: Upgrade to @nx/angular@22.7.2.

Overview

nx is a The core Nx plugin contains the core functionality of Nx like the project graph, nx commands and task orchestration.

Affected versions of this package are vulnerable to Exposed Dangerous Method or Function via the local HTTP server's permissive CORS policy, which sends Access-Control-Allow-Origin: * on every response. An attacker can access sensitive information, such as the full project graph and the output of the /help endpoint, by enticing a developer to visit a malicious website that makes cross-origin requests to the local server. In rare cases, this can also lead to arbitrary command execution if the /help endpoint is abused.

Remediation

Upgrade nx to version 22.7.2, 23.0.0-beta.2 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: webpack
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 webpack@5.88.0
    Remediation: Upgrade to @nx/angular@20.4.1.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via DOM clobbering in the AutoPublicPathRuntimeModule class. Non-script HTML elements with unsanitized attributes such as name and id can be leveraged to execute code in the victim's browser. An attacker who can control such elements on a page that includes Webpack-generated files, can cause subsequent scripts to be loaded from a malicious domain.

PoC

<!DOCTYPE html>
<html>
<head>
  <title>Webpack Example</title>
  <!-- Attacker-controlled Script-less HTML Element starts--!>
  <img name="currentScript" src="https://attacker.controlled.server/"></img>
  <!-- Attacker-controlled Script-less HTML Element ends--!>
</head>
<script src="./dist/webpack-gadgets.bundle.js"></script>
<body>
</body>
</html>

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade webpack to version 5.94.0 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/compiler
  • Introduced through: @angular/compiler@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/compiler@19.0.5
    Remediation: Upgrade to @angular/compiler@20.3.25.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the two-way property binding. An attacker can execute arbitrary JavaScript in the context of the user's browser by supplying crafted input to a sensitive DOM property bound with two-way binding syntax.

Note: This is only exploitable if the application uses two-way binding on a sensitive native DOM property, the bound value is user-controllable, and no additional manual sanitization is performed.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/compiler to version 20.3.25, 21.2.17, 22.0.1 or higher.

References

medium severity
new

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/platform-server
  • Introduced through: @angular/platform-server@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/platform-server@19.0.5
    Remediation: Upgrade to @angular/platform-server@20.3.27.

Overview

@angular/platform-server is an Angular - library for using Angular in Node.js

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the bundled domino DOM serializer, which does not escape text nodes inside the fallback raw-content elements <iframe>, <noembed>, <noframes>, and <noscript> during SSR serialization. An attacker can execute same-origin JavaScript against any visitor to a server-rendered page by supplying data that is bound inside one of those elements and contains a closing tag that ends the element early and opens a script context. This requires the SSR application to bind user-controlled values inside one of those fallback raw-content elements, and the vulnerable serialization path is reached with critical CSS inlining enabled, which is the default.

Workaround

This vulnerability can be avoided by disabling critical CSS inlining, setting inlineCritical: false in the build configuration, which keeps the unescaped fallback raw-content serialization out of the rendered output.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/platform-server to version 20.3.27, 21.2.19, 22.0.7 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/core
  • Introduced through: @angular/core@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/core@19.0.5
    Remediation: Upgrade to @angular/core@19.2.23.

Overview

@angular/core is a package that lets you write client-side web applications as if you had a smarter browser. It also lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the createComponent mechanism. An attacker can execute arbitrary JavaScript code in the context of the user's browser by mounting a dynamic component onto a <script> or namespaced script element when user-controlled input is passed as the selector or host element and no additional input sanitization is performed.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/core to version 19.2.23, 20.3.22, 21.2.15, 22.0.0-rc.2 or higher.

References

medium severity

Cross-site Scripting

  • Vulnerable module: express
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3
    Remediation: Upgrade to express@4.20.0.

Overview

express is a minimalist web framework.

Affected versions of this package are vulnerable to Cross-site Scripting due to improper handling of user input in the response.redirect method. An attacker can execute arbitrary code by passing malicious input to this method.

Note

To exploit this vulnerability, the following conditions are required:

  1. The attacker should be able to control the input to response.redirect()

  2. express must not redirect before the template appears

  3. the browser must not complete redirection before:

  4. the user must click on the link in the template

Remediation

Upgrade express to version 4.20.0, 5.0.0 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: koa
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@21.4.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@21.4.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@21.4.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@21.4.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.

Overview

koa is a Koa web app framework

Affected versions of this package are vulnerable to Open Redirect via the back function in lib/response.js which uses the user-controllable referrer header as the redirect target. An attacker can redirect users to arbitrary external sites by manipulating the Referrer argument.

Remediation

Upgrade koa to version 2.16.2, 3.0.1 or higher.

References

low severity

Use of Cache Containing Sensitive Information

  • Vulnerable module: @angular/common
  • Introduced through: @angular/common@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/common@19.0.5
    Remediation: Upgrade to @angular/common@19.2.23.

Overview

Affected versions of this package are vulnerable to Use of Cache Containing Sensitive Information via the HttpTransferCache utility. An attacker can access sensitive user-specific information by making requests to pages that have been cached by a shared caching layer after another user has authenticated and triggered credentialed requests during server-side rendering.

Note: This is only exploitable if server-side rendering and hydration are enabled, credentialed HTTP requests are performed during SSR, and the SSR-rendered HTML is cached by a shared caching layer without proper cache-control headers to distinguish authenticated users.

Remediation

Upgrade @angular/common to version 19.2.23, 20.3.22, 21.2.15, 22.0.0-rc.2 or higher.

References

low severity
new

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/compiler
  • Introduced through: @angular/compiler@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/compiler@19.0.5
    Remediation: Upgrade to @angular/compiler@20.3.27.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the compiler's i18n metadata collection path, which lets event-handler attributes be marked translatable with i18n-on* (such as i18n-onerror), bypassing the validation that normally blocks binding to event-handler attributes like onclick and onerror. An attacker can execute arbitrary JavaScript in the application's origin by supplying translation content for such an attribute, for example replacing the handler in <img src="foo.jpg" onerror="void 0" i18n-onerror />. This requires a static event-handler attribute to be marked for translation with i18n-on* in a template and the application to localize using translation files from a source the attacker can influence.

Workaround

This vulnerability can be avoided by never marking static event-handler attributes for internationalization with i18n-on* and by sourcing translation files only from trusted origins.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/compiler to version 20.3.27, 21.2.19, 22.0.1 or higher.

References

low severity

Cross-site Scripting (XSS)

  • Vulnerable module: koa
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@21.2.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@21.2.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@21.2.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@21.2.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 @module-federation/node@2.6.11 @module-federation/enhanced@0.7.6 @module-federation/rspack@0.7.6 @module-federation/manifest@0.7.6 @module-federation/dts-plugin@0.7.6 koa@2.15.3
    Remediation: Upgrade to @nx/angular@20.3.2.

Overview

koa is a Koa web app framework

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the ctx.redirect() function. An attacker can execute scripts on the user's browser or redirect users to malicious sites by supplying malicious input as an achor reference.

Workaround

This vulnerability can be mitigated by ensuring all user-supplied URLs are properly sanitized before being passed to ctx.redirect.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade koa to version 2.16.1, 3.0.0-alpha.5 or higher.

References

low severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/compiler
  • Introduced through: @angular/compiler@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/compiler@19.0.5
    Remediation: Upgrade to @angular/compiler@19.2.18.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the handling of SVG <script> element attributes href and xlink:href when user-controlled data is bound to these attributes. An attacker can execute arbitrary JavaScript code in the victim's browser by supplying a crafted payload through untrusted data sources that are bound to these attributes.

##Workaround

This vulnerability can be mitigated by avoiding dynamic template bindings for SVG <script> elements and strictly validating input against a trusted allowlist before it reaches the template.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/compiler to version 19.2.18, 20.3.16, 21.0.7, 21.1.0-rc.0 or higher.

References

low severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/compiler
  • Introduced through: @angular/compiler@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/compiler@19.0.5
    Remediation: Upgrade to @angular/compiler@19.2.20.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the handling of internationalized attribute bindings. An attacker can execute arbitrary scripts in the context of the application by injecting malicious input into attributes such as href, src, or similar, when these are marked for internationalization and bound to unsanitized user data.

Note: This is only exploitable if unsanitized user input is bound to a security-sensitive attribute that is also marked with an i18n-<attribute> directive on the same element.

Workaround

This vulnerability can be mitigated by explicitly sanitizing the input using Angular's DomSanitizer.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/compiler to version 19.2.20, 20.3.18, 21.2.4, 22.0.0-next.3 or higher.

References

low severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/core
  • Introduced through: @angular/core@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/core@19.0.5
    Remediation: Upgrade to @angular/core@19.2.18.

Overview

@angular/core is a package that lets you write client-side web applications as if you had a smarter browser. It also lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the handling of SVG <script> element attributes href and xlink:href when user-controlled data is bound to these attributes. An attacker can execute arbitrary JavaScript code in the victim's browser by supplying a crafted payload through untrusted data sources that are bound to these attributes.

##Workaround

This vulnerability can be mitigated by avoiding dynamic template bindings for SVG <script> elements and strictly validating input against a trusted allowlist before it reaches the template.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/core to version 19.2.18, 20.3.16, 21.0.7, 21.1.0-rc.0 or higher.

References

low severity

Cross-site Scripting (XSS)

  • Vulnerable module: @angular/core
  • Introduced through: @angular/core@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/core@19.0.5
    Remediation: Upgrade to @angular/core@19.2.20.

Overview

@angular/core is a package that lets you write client-side web applications as if you had a smarter browser. It also lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) in the handling of internationalized attribute bindings. An attacker can execute arbitrary scripts in the context of the application by injecting malicious input into attributes such as href, src, or similar, when these are marked for internationalization and bound to unsanitized user data.

Note: This is only exploitable if unsanitized user input is bound to a security-sensitive attribute that is also marked with an i18n-<attribute> directive on the same element.

Workaround

This vulnerability can be mitigated by explicitly sanitizing the input using Angular's DomSanitizer.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade @angular/core to version 19.2.20, 20.3.18, 21.2.3, 22.0.0-next.2 or higher.

References

low severity

Directory Traversal

  • Vulnerable module: @babel/core
  • Introduced through: @angular/localize@19.0.5

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @angular/localize@19.0.5 @babel/core@7.26.0
    Remediation: Upgrade to @angular/localize@20.3.26.

Overview

Affected versions of this package are vulnerable to Directory Traversal via the inputSourceMap function. An attacker can access arbitrary files by crafting malicious input source code containing a #sourceMappingURL comment that references a specific source map file path.

Note:

This is only exploitable if all these conditions are met: the attacker controls the input source code, can read the output source code, and knows the path of the source map file they want to read.

Workaround

This vulnerability can be mitigated by setting inputSourceMap: false in the Babel options or by manually extracting and validating the #sourceMappingURL comment before processing.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade @babel/core to version 7.29.6, 8.0.0-rc.6 or higher.

References

low severity

Cross-site Scripting

  • Vulnerable module: send
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 send@0.18.0
    Remediation: Upgrade to express@4.20.0.
  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 serve-static@1.15.0 send@0.18.0
    Remediation: Upgrade to express@4.21.0.

Overview

send is a Better streaming static file server with Range and conditional-GET support

Affected versions of this package are vulnerable to Cross-site Scripting due to improper user input sanitization passed to the SendStream.redirect() function, which executes untrusted code. An attacker can execute arbitrary code by manipulating the input parameters to this method.

Note:

Exploiting this vulnerability requires the following:

  1. The attacker needs to control the input to response.redirect()

  2. Express MUST NOT redirect before the template appears

  3. The browser MUST NOT complete redirection before

  4. The user MUST click on the link in the template

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade send to version 0.19.0, 1.1.0 or higher.

References

low severity

Cross-site Scripting

  • Vulnerable module: serve-static
  • Introduced through: express@4.18.3

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent express@4.18.3 serve-static@1.15.0
    Remediation: Upgrade to express@4.20.0.

Overview

serve-static is a server.

Affected versions of this package are vulnerable to Cross-site Scripting due to improper sanitization of user input in the redirect function. An attacker can manipulate the redirection process by injecting malicious code into the input.

Note

To exploit this vulnerability, the following conditions are required:

  1. The attacker should be able to control the input to response.redirect()

  2. express must not redirect before the template appears

  3. the browser must not complete redirection before:

  4. the user must click on the link in the template

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade serve-static to version 1.16.0, 2.1.0 or higher.

References

low severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: webpack
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 webpack@5.88.0
    Remediation: Upgrade to @nx/angular@20.4.1.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the HttpUriPlugin component. An attacker can cause unauthorized outbound requests to internal or otherwise restricted endpoints and include untrusted content in build outputs by crafting URLs with userinfo components that bypass allow-list validation.

Note:

This is only exploitable if experiments.buildHttp is enabled.

Remediation

Upgrade webpack to version 5.104.1 or higher.

References

low severity

Server-side Request Forgery (SSRF)

  • Vulnerable module: webpack
  • Introduced through: @nx/angular@20.3.0

Detailed paths

  • Introduced through: ngx-cookieconsent@tinesoft/ngx-cookieconsent @nx/angular@20.3.0 @nx/module-federation@20.3.0 webpack@5.88.0
    Remediation: Upgrade to @nx/angular@20.4.1.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the HttpUriPlugin component when HTTP redirects are followed without re-validating the allowed URIs. An attacker can cause unauthorized network requests to internal services and inclusion of untrusted content in build outputs by manipulating import URLs to trigger redirects outside the intended allow-list.

Note:

This is only exploitable if experiments.buildHttp is enabled.

Remediation

Upgrade webpack to version 5.104.0 or higher.

References