CVE-2021-23398
React-bootstrap-table Project React-bootstrap-table vulnerability
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.
Affected products
React-bootstrap-table. The exact versions are in the references.
What to do now
- Check your exposureFind out whether React-bootstrap-table Project React-bootstrap-table runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/AllenFang/react-bootstrap-table/issues/2071 · Exploit
- snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314286 · Exploit
- snyk.io/vuln/SNYK-JS-REACTBOOTSTRAPTABLE-1314285 · Exploit
- github.com/AllenFang/react-bootstrap-table/blob/26d07defab759e4f9bce22d1d568690830b8d9d7/s
- nvd.nist.gov/vuln/detail/CVE-2021-23398
- cve.org/CVERecord?id=CVE-2021-23398
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.