@asamuzakjp/css-color is vulnerable to Denial of Service (DoS)
53
Medium Risk
The resolveColorMix function in src/js/color.ts destructures the result of several RegExp.match() calls without checking whether the match succeeded. A color-mix() value nested three or more levels deep, or otherwise malformed color-mix input, leaves one of these match calls returning null, and destructuring null throws an uncaught TypeError that propagates to the caller. The patch checks each match result and returns the invalid color fallback instead of destructuring null.
You are affected if you are using a version that falls within the vulnerable range.
@asamuzakjp/css-color is vulnerable to Denial of Service (DoS) in versions 0.0.1 - 7.0.0.
Upgrade the @asamuzakjp/css-color library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.