{"id":"CVE-2021-23398","aliases":["EUVD-2021-2417","GHSA-2589-w6xf-983r"],"status":"published","title":"Cross-site Scripting (XSS)","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.","severity":{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.01341,"percentile":0.71561,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-79"],"published":"2021-06-24T15:00:12Z","modified":"2026-06-17T03:38:41Z","affected":[{"source":"ghsa","ecosystem":"npm","package":"react-bootstrap-table","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"4.3.1"}]}]},{"source":"osv","ecosystem":"npm","package":"react-bootstrap-table","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"last_affected":"4.3.1"}]}]}],"products":[{"vendor":"react-bootstrap-table_project","product":"react-bootstrap-table"}],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-REACTBOOTSTRAPTABLE-1314285","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1314286","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://github.com/AllenFang/react-bootstrap-table/blob/26d07defab759e4f9bce22d1d568690830b8d9d7/src/TableBody.js%23L114-L118","tags":["x_refsource_MISC","x_transferred","Broken Link","web"]},{"url":"https://github.com/AllenFang/react-bootstrap-table/issues/2071","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23398","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-2589-w6xf-983r"}],"sources":{"cve":[{"id":"CVE-2021-23398","title":"Cross-site Scripting (XSS)","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.","status":"published","published":"2021-06-24T15:00:12.133Z","modified":"2024-09-17T00:46:54.673Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:33:00.488332Z"}],"euvd":[{"id":"EUVD-2021-2417","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.","status":"published","published":"2021-06-24T15:00:12Z","modified":"2024-09-17T00:46:54Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N/E:P","level":"medium"}],"updated_at":"2026-11-03T00:28:55.3353Z"}],"ghsa":[{"id":"GHSA-2589-w6xf-983r","title":"Cross-site scripting in react-bootstrap-table","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.","status":"published","published":"2021-12-10T18:58:49Z","modified":"2023-02-01T05:05:48Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:36:35.781528Z"}],"nvd":[{"id":"CVE-2021-23398","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.","status":"published","published":"2021-06-24T15:15:08.21Z","modified":"2026-06-17T03:38:41.373Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T14:06:54.892562Z"}],"osv":[{"id":"GHSA-2589-w6xf-983r","title":"Cross-site scripting in react-bootstrap-table","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.","status":"published","published":"2021-12-10T18:58:49Z","modified":"2023-11-08T04:05:07.329507Z","cvss":[{"version":"3.1","score":6.1,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","level":"medium"}],"cwes":["CWE-79"],"updated_at":"2026-11-02T15:46:33.956911Z"}]}}
