{"id":"CVE-2021-41184","published":"2021-10-26T00:00:00Z","modified":"2026-11-02T18:07:14Z","title":"XSS in the `of` option of the `.position()` util","vendor":"jquery","product":"jquery-ui","tier":"core","eol":null,"affectedVersions":[{"vendor":"jquery","product":"jquery-ui","versions":["< 1.13.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-11-02T18:06:55.618469Z","from":"CISA ADP","provenance":"source"},"description":{"text":"jQuery-UI is the official jQuery user interface library. Prior to version 1.13.0, accepting the value of the `of` option of the `.position()` util from untrusted sources may execute untrusted code. The issue is fixed in jQuery UI 1.13.0. Any string value passed to the `of` option is now treated as a CSS selector. A workaround is to not accept the value of the `of` option from untrusted sources.","provenance":"source","from":"CVE.org"},"summary":{"text":"The .position() utility in jQuery UI, prior to version 1.13.0, can execute untrusted code when the of option is populated from untrusted input, because string values were not handled safely. An attacker who can supply the value of that option over the network, with a user interacting with the affected page, can get code executed in the victim's browser; no authentication is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T04:03:07Z"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.42867,"percentile":0.9903,"date":"2026-11-25","provenance":"source"},"kev":null,"vulncheckKev":null,"exploited":false,"otx":{"pulseCount":10,"pulses":[{"name":"ACTUALIZACION | ||Oracle Critical Patch Update Advisory - April 2025","url":"https://otx.alienvault.com/pulse/6807e1c45dd52410facbed8f","created":"2025-04-22"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - July 2024","url":"https://otx.alienvault.com/pulse/66a1221a4c2d00084ba3bcba","created":"2024-07-24"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - January 2024","url":"https://otx.alienvault.com/pulse/65c0fd55c5d3c780a06aa227","created":"2024-02-05"},{"name":"ACTUALIZACION | Informe de control de vulnerabilidades para SAP/Septiembre/2023","url":"https://otx.alienvault.com/pulse/6508bf2c091a0e27ac8c8a6b","created":"2023-09-18"},{"name":"ACTUALIZACION | Oracle Critical Patch Update Advisory - July 2023","url":"https://otx.alienvault.com/pulse/64bace8d5d470a6a7baaa8a9","created":"2023-07-21"},{"name":"ACTUALIZACION | SAP Patch Day Blog","url":"https://otx.alienvault.com/pulse/634b172fec38187c4a5fecb3","created":"2022-10-15"},{"name":"Oracle Critical Patch Update Advisory - April 2022","url":"https://otx.alienvault.com/pulse/626040216e00cd388b1b9180","created":"2022-04-20"},{"name":"ACTUALIZACION | Planning Analytics Workspace se ve afectado por vulnerabilidades de seguridad | IBM","url":"https://otx.alienvault.com/pulse/6214ddb8410d1a052959e11d","created":"2022-02-22"},{"name":"ACTUALIZACION | Planning Analytics Workspace se ve afectado por vulnerabilidades de seguridad | IBM","url":"https://otx.alienvault.com/pulse/6214ddb6667a4f68da319336","created":"2022-02-22"},{"name":"Drupal Developers Warn Users about Vulnerabilities in jQuery UI","url":"https://otx.alienvault.com/pulse/61ea9c72fdea6dc47a4e7bab","created":"2022-01-21"}],"provenance":"machine"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://blog.jqueryui.com/2021/10/jquery-ui-1-13-0-released/","tags":[]},{"url":"https://github.com/jquery/jquery-ui/security/advisories/GHSA-gpqq-952q-5327","tags":[]},{"url":"https://github.com/jquery/jquery-ui/commit/effa323f1505f2ce7a324e4f429fa9032c72f280","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/O74SXYY7RGXREQDQUDQD4BPJ4QQTD2XQ/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SNXA7XRKGINWSUIPIZ6ZBCTV6N3KSHES/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NXIUUBRVLA4E7G7MMIKCEN75YN7UFERW/","tags":["vendor-advisory"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20211118-0004/","tags":[]},{"url":"https://www.drupal.org/sa-core-2022-001","tags":[]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":[]},{"url":"https://www.tenable.com/security/tns-2022-09","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HVKIOWSXL2RF2ULNAP7PHESYCFSZIJE3/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SGSY236PYSFYIEBRGDERLA7OSY6D7XL4/","tags":["vendor-advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/08/msg00040.html","tags":[]},{"url":"http://seclists.org/fulldisclosure/2024/Aug/37","tags":[]}],"techniques":[],"reports":[],"affected":[{"ecosystem":"npm","package":"jquery-ui","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"from":["GHSA-gpqq-952q-5327"],"provenance":"source"},{"ecosystem":"Maven","package":"org.webjars.npm:jquery-ui","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"from":["GHSA-gpqq-952q-5327"],"provenance":"source"},{"ecosystem":"NuGet","package":"jQuery.UI.Combined","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"from":["GHSA-gpqq-952q-5327"],"provenance":"source"},{"ecosystem":"RubyGems","package":"jquery-ui-rails","vulnerableRanges":["<7.0.0"],"patched":["7.0.0"],"from":["GHSA-gpqq-952q-5327"],"provenance":"source"}],"advisories":[{"id":"GHSA-gpqq-952q-5327","url":"https://github.com/advisories/GHSA-gpqq-952q-5327","severity":"MODERATE","ecosystem":"npm","package":"jquery-ui","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"provenance":"source","from":"GHSA"},{"id":"GHSA-gpqq-952q-5327","url":"https://github.com/advisories/GHSA-gpqq-952q-5327","severity":"MODERATE","ecosystem":"Maven","package":"org.webjars.npm:jquery-ui","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"provenance":"source","from":"GHSA"},{"id":"GHSA-gpqq-952q-5327","url":"https://github.com/advisories/GHSA-gpqq-952q-5327","severity":"MODERATE","ecosystem":"NuGet","package":"jQuery.UI.Combined","vulnerableRanges":["<1.13.0"],"patched":["1.13.0"],"provenance":"source","from":"GHSA"},{"id":"GHSA-gpqq-952q-5327","url":"https://github.com/advisories/GHSA-gpqq-952q-5327","severity":"MODERATE","ecosystem":"RubyGems","package":"jquery-ui-rails","vulnerableRanges":["<7.0.0"],"patched":["7.0.0"],"provenance":"source","from":"GHSA"}],"euvd":{"id":"EUVD-2021-2204","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-2204","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2022-04-14","earliestUrl":"https://github.com/gabrielolivra/Exploit-Medium-CVE-2021-41184","repos":[{"name":"gabrielolivra/Exploit-Medium-CVE-2021-41184","url":"https://github.com/gabrielolivra/Exploit-Medium-CVE-2021-41184","stars":6,"created":"2022-04-14"}]},"first":{"date":"2022-04-14","source":"PoC-in-GitHub","url":"https://github.com/gabrielolivra/Exploit-Medium-CVE-2021-41184"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2021-10-26","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-41184","provenance":"source"},{"date":"2022-04-14","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/gabrielolivra/Exploit-Medium-CVE-2021-41184","provenance":"source"}],"speed":{"daysToPublicExploit":170,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":31.7,"factors":[{"name":"In a KEV catalog","points":0.0,"detail":"not listed"},{"name":"Recent KEV listing","points":0.0,"detail":"not listed"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.81,"detail":"percentile 0.9903"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"1 PoC-in-GitHub repo"},{"name":"Mentioned in OTX pulses","points":2.36,"detail":"10 pulses"},{"name":"CVSS severity","points":4.55,"detail":"base score 6.5"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]},"lineage":{"packageHistory":[{"cve":"CVE-2016-7103","published":"2017-03-15","fixed":"1.12.0","kev":false},{"cve":"CVE-2021-41182","published":"2021-10-26","fixed":"1.13.0","kev":false},{"cve":"CVE-2021-41183","published":"2021-10-26","fixed":"1.13.0","kev":false},{"cve":"CVE-2021-41184","published":"2021-10-26","fixed":"1.13.0","kev":false},{"cve":"CVE-2022-31160","published":"2022-07-20","fixed":"1.13.2","kev":false,"link":{"from":"CVE-2021-41184","to":"CVE-2022-31160","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:jquery-ui","fromFixed":"1.13.0","toFixed":"1.13.2","daysApart":267},{"kind":"version-step","provenance":"source","package":"Maven:org.webjars.npm:jquery-ui","fromFixed":"1.13.0","toFixed":"1.13.2","daysApart":267}]}}],"package":"npm:jquery-ui"}}