CVE-2021-23398 Cross-site Scripting (XSS)
Attackers can execute arbitrary scripts in user browsers via unsanitized dataFormat parameters in the react-bootstrap-table library.
- 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
- None listed
What is CVE-2021-23398?
CVE-2021-23398 is a medium-severity cross-site scripting vulnerability in react-bootstrap-table, published on 24 Jun 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
All versions of package react-bootstrap-table are vulnerable to Cross-site Scripting (XSS) via the dataFormat parameter. The problem is triggered when an invalid React element is returned, leading to dangerouslySetInnerHTML being used, which does not sanitize the output.
Weakness: CWE-79
Which versions are affected by CVE-2021-23398?
2 open source packages ship an affected version, including react-bootstrap-table. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
react-bootstrap-table npm | All versions to 4.3.1 | None |
react-bootstrap-table npm | All versions to 4.3.1 | None |
Products include React-Bootstrap-Table Project React-Bootstrap-Table.
How do I fix CVE-2021-23398?
No fix has been published for CVE-2021-23398 yet. Limit exposure of the affected software until one is available.
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-23398 being exploited?
There is no known exploitation of CVE-2021-23398 in the wild and no public exploit code.
Sources
Also known as GHSA-2589-w6xf-983r.