CVE-2021-23443 Cross-site Scripting (XSS)
Attackers can execute arbitrary scripts by exploiting type confusion in edge.js to bypass input sanitization when rendering arrays.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2021-23443?
CVE-2021-23443 is a medium-severity cross-site scripting vulnerability in edge.js, published on 21 Sep 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
This affects the package edge.js before 5.3.2. A type confusion vulnerability can be used to bypass input sanitization when the input to be rendered is an array (instead of a string or a SafeValue), even if {{ }} are used.
Weakness: CWE-843
Which versions are affected by CVE-2021-23443?
2 open source packages ship an affected version, including edge.js. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
edge.js npm | All versions | 5.3.2 |
edge.js npm | All versions | 5.3.2 |
Products include Adonisjs Edge.
How do I fix CVE-2021-23443?
Upgrade edge.js to 5.3.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2021-23443 being exploited?
There is no known exploitation of CVE-2021-23443 in the wild and no public exploit code.
Sources
Also known as GHSA-55r9-7mf8-m382, SNYK-JS-EDGEJS-1579556.