CVE-2021-23398 json
Cross-site Scripting (XSS)
published 5y ago modified 4mo ago also GHSA-2589-w6xf-983r , EUVD-2021-2417
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 71%
- public exploits
- 0
- none known
Summary
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.
Is CVE-2021-23398 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
1.34% chance of exploitation in the next 30 days, higher than 71% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- snyk.io https://snyk.io/vuln/SNYK-JS-REACTBOOTSTRAPTABLE-1314285 referenced PoC, tagged "exploit" by a source, unverified
- snyk.io https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314286 referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/AllenFang/react-bootstrap-table/issues/2071 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P |
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | react-bootstrap-table | <=4.3.1 |
no fix listed |
Affected products
- n/a react-bootstrap-table
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
snyk.io
/vuln/SNYK-JS-REACTBOOTSTRAPTABLE-1314285
web, exploit, third-party-advisory
-
snyk.io
/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314286
web, exploit, third-party-advisory
-
github.com
/AllenFang/react-bootstrap-table/issues/2071
web, exploit, third-party-advisory
-
github.com
/AllenFang/react-bootstrap-table/blob/26d07defab759e4f9bce22d1d568690830b8d9d7/src/TableBody.js%23L114-L118
web, broken-link
-
nvd.nist.gov
/vuln/detail/CVE-2021-23398
advisory
Sources
- CVE List CVE-2021-23398
- GitHub Advisory GHSA-2589-w6xf-983r
- NVD CVE-2021-23398
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.