GHSA-g9wg-wq4f-2x5w Cross-Site Scripting in console-feed
Cross-Site Scripting in console-feed allows attackers to execute arbitrary JavaScript via malicious console.log payloads.
- 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 GHSA-g9wg-wq4f-2x5w?
GHSA-g9wg-wq4f-2x5w is a cross-site scripting vulnerability in console-feed, published on 3 Sep 2020. 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
Versions of console-feed prior to 2.8.10 are vulnerable to Cross-Site Scripting (XSS). The package fails to properly escape the rendered output. If an application uses console-feed and a malicious JavaScript payload was passed to a console.log('%_', payload) call, the package would render HTML containing the malicious payload.
Recommendation
Upgrade to version 2.8.10 or later.
Which versions are affected by GHSA-g9wg-wq4f-2x5w?
2 open source packages ship an affected version, including console-feed.
| Package | Affected | Fixed in |
|---|---|---|
console-feed npm | All versions | 2.8.10 |
console-feed npm | All versions | 2.8.10 |
How do I fix GHSA-g9wg-wq4f-2x5w?
Upgrade console-feed to 2.8.10 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 GHSA-g9wg-wq4f-2x5w being exploited?
There is no known exploitation of GHSA-g9wg-wq4f-2x5w in the wild and no public exploit code.