{"id":"CVE-2021-41086","published":"2021-09-21T21:00:12Z","modified":"2024-08-04T02:59:31Z","title":"Clipboard-based XSS in jsuites","vendor":"jsuites","product":"jsuites","tier":"tail","description":{"text":"jsuites is an open source collection of common required javascript web components. In affected versions users are subject to cross site scripting (XSS) attacks via clipboard content. jsuites is vulnerable to DOM based XSS if the user can be tricked into copying _anything_ from a malicious and pasting it into the html editor. This is because a part of the clipboard content is directly written to `innerHTML` allowing for javascript injection and thus XSS. Users are advised to update to version 4.9.11 to resolve.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00914,"percentile":0.58273,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/jsuites/jsuites/security/advisories/GHSA-qh7x-j4v8-qw5w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/jsuites/jsuites/commit/d47a6f4e143188dde2742f4cffd313e1068ad3b3","tags":["x_refsource_MISC"]},{"url":"https://github.com/jsuites/jsuites/commit/fe1d3cc5e339f2f4da8ed1f9f42271fdf9cbd8d2","tags":["x_refsource_MISC"]}],"priority":{"score":17.7,"factors":[{"name":"EPSS percentile","points":11.65},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"jsuites","affectedVersions":[{"vendor":"jsuites","product":"jsuites","versions":["< 4.9.11"]}],"affected":[{"ecosystem":"npm","package":"jsuites","vulnerableRanges":["<4.9.11"],"patched":["4.9.11"],"from":["GHSA-qh7x-j4v8-qw5w"],"provenance":"source"}],"summary":{"text":"A DOM-based cross-site scripting flaw in the jsuites open source JavaScript web component library lets clipboard content be written directly to innerHTML without sanitisation, so part of what a user copies is rendered as HTML and can run script when pasted into the html editor. An attacker needs a low-privileged account and must trick the user into copying content from a malicious source and pasting it into the editor, after which the injected script can compromise the user's session in the affected application.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:09Z"},"euvd":{"id":"EUVD-2021-2102","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-jsuites-cve-2021-41086","children":[{"from":"CVE-2021-41086","to":"CVE-2022-25979","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["dist/jsuites.js"],"commits":["https://github.com/jsuites/jsuites/commit/d47a6f4e143188dde2742f4cffd313e1068ad3b3","https://github.com/jsuites/jsuites/commit/fe1d3cc5e339f2f4da8ed1f9f42271fdf9cbd8d2","https://github.com/jsuites/jsuites/commit/b31770d5fe91684a00177f629aab933139c32d9f"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.48,"basis":"same package + description similarity"}]}]}}