CVE-2020-28470 Cross-site Scripting (XSS)
An attacker can inject malicious scripts into the HTML page via serialized state, leading to cross-site scripting attacks.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-28470?
CVE-2020-28470 is a high-severity cross-site scripting vulnerability in @scullyio/scully, published on 14 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
This affects the package @scullyio/scully before 1.0.9. The transfer state is serialised with the JSON.stringify() function and then written into the HTML page.
Weakness: CWE-79
Which versions are affected by CVE-2020-28470?
4 open source packages ship an affected version, including @scullyio/scully and @scullyio/ng-lib. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
@scullyio/scully npm | All versions | 1.0.9 |
@scullyio/scully npm | All versions | 1.0.9 |
@scullyio/ng-lib npm | All versions | 1.0.1 |
@scullyio/ng-lib npm | All versions | 1.0.1 |
Products include Scully Scully.
How do I fix CVE-2020-28470?
Upgrade @scullyio/scully to 1.0.9 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-2020-28470 being exploited?
There is no known exploitation of CVE-2020-28470 in the wild and no public exploit code.
Sources
Also known as GHSA-r96p-v3cr-gfv8.