CVE-2018-20962 Backpack\CRUD for Laravel XSS Vulnerability
Cross-site scripting vulnerability in the Backpack CRUD library for Laravel allows attackers to inject malicious scripts via the select field type.
- 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-2018-20962?
CVE-2018-20962 is a medium-severity cross-site scripting vulnerability in n/a, published on 8 Aug 2019. 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
The Backpack\CRUD Backpack component before 3.4.9 for Laravel allows XSS via the select field type.
Weakness: CWE-79
Which versions are affected by CVE-2018-20962?
2 open source packages ship an affected version, including backpack/crud. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
backpack/crud Packagist | All versions | 3.4.9 |
backpack/crud Packagist | All versions | 3.4.9 |
Products include Backpackforlaravel Backpack\\crud.
How do I fix CVE-2018-20962?
Upgrade backpack/crud to 3.4.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-2018-20962 being exploited?
There is no known exploitation of CVE-2018-20962 in the wild and no public exploit code.
Sources
Also known as GHSA-6gfm-gpr3-8wh9.