{"answers":{"affected":"8 open source packages ship an affected version, including org.webjars.npm:jquery-ui, jQuery.UI.Combined and jquery-ui-rails. It affects 10 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31160 exists.","fix":"Upgrade org.webjars.npm:jquery-ui to 1.13.2 or later.","what":"CVE-2022-31160 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 20 Jul 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-31160 and fix it if it is affected.\n\nWhat it is: CVE-2022-31160 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 20 Jul 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-31160 exists.\n\nAffected packages and fixed versions:\n- org.webjars.npm:jquery-ui (Maven): affected all versions; fixed in 1.13.2\n- org.webjars.npm:jquery-ui (Maven): affected all versions; fixed in 1.13.2\n- jQuery.UI.Combined (NuGet): affected all versions; fixed in 1.13.2\n- jQuery.UI.Combined (NuGet): affected all versions; fixed in 1.13.2\n- jquery-ui-rails (RubyGems): affected all versions; fixed in 8.0.0\n- jquery-ui-rails (RubyGems): affected all versions; fixed in 8.0.0\n- jquery-ui (npm): affected all versions; fixed in 1.13.2\n- jquery-ui (npm): affected all versions; fixed in 1.13.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-31160/ (Markdown: https://insights.sbomify.com/CVE-2022-31160/index.md)","id":"CVE-2022-31160","markdown":"https://insights.sbomify.com/CVE-2022-31160/index.md","name":"CVE-2022-31160","record":{"aliases":["DEBIAN-CVE-2022-31160","GHSA-h6gj-6jjq-h8g9","MINI-v2vg-wgqv-w7fc","UBUNTU-CVE-2022-31160"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"jQuery UI library","requires_auth":"none","summary":"An attacker can execute arbitrary JavaScript via XSS when refreshing a checkboxradio widget with encoded HTML entities in the label.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"debian_linux","vendor":"debian"},{"product":"jquery_ui_checkboxradio","vendor":"drupal"},{"product":"fedora","vendor":"fedoraproject"},{"product":"jquery_ui","vendor":"jqueryui"},{"product":"h300s_firmware","vendor":"netapp"},{"product":"h410c_firmware","vendor":"netapp"},{"product":"h410s_firmware","vendor":"netapp"},{"product":"h500s_firmware","vendor":"netapp"},{"product":"h700s_firmware","vendor":"netapp"},{"product":"oncommand_insight","vendor":"netapp"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of jQuery. Versions prior to 1.13.2 are potentially vulnerable to cross-site scripting. Initializing a checkboxradio widget on an input enclosed within a label makes that parent label contents considered as the input label. Calling `.checkboxradio( \"refresh\" )` on such a widget and the initial HTML contained encoded HTML entities will make them erroneously get decoded. This can lead to potentially executing JavaScript code. The bug has been patched in jQuery UI 1.13.2. To remediate the issue, someone who can change the initial HTML can wrap all the non-input contents of the `label` in a `span`.","ecosystems":["Maven","NuGet","RubyGems","npm"],"exploits":{"exploitdb":0,"first_seen":"2025-08-12","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-08-12T19:14:57Z","kind":"github_poc","ref":"https://github.com/CyberOne-TeamARES/jquery-cve-2022-31160","stars":0,"title":"jquery XSS Proof of Concept (PoC)"}],"tier":"weaponised"},"has_fix":true,"headline":"jQuery UI contains potential XSS vulnerability when refreshing a checkboxradio with an HTML-like initial text label","id":"CVE-2022-31160","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Maven","product":"debian:debian_linux","products":["debian:debian_linux","fedoraproject:fedora","netapp:h300s_firmware","netapp:h410c_firmware","netapp:h410s_firmware","netapp:h500s_firmware","netapp:h700s_firmware","netapp:oncommand_insight"],"type":"xss","year":"2022"},"n_packages":8,"n_references":9,"next":{"headline":"Roxy-WI Vulnerable to Unauthenticated Remote Code Execution via ssl_cert Upload","id":"CVE-2022-31161"},"packages":[{"ecosystem":"Maven","fixed":["1.13.2"],"introduced":["0"],"last_affected":[],"package":"org.webjars.npm:jquery-ui","purl":null,"source":"GHSA-h6gj-6jjq-h8g9"},{"ecosystem":"Maven","fixed":["1.13.2"],"introduced":["0"],"last_affected":[],"package":"org.webjars.npm:jquery-ui","purl":"pkg:maven/org.webjars.npm/jquery-ui","source":"GHSA-h6gj-6jjq-h8g9"},{"ecosystem":"NuGet","fixed":["1.13.2"],"introduced":["0"],"last_affected":[],"package":"jQuery.UI.Combined","purl":null,"source":"GHSA-h6gj-6jjq-h8g9"},{"ecosystem":"NuGet","fixed":["1.13.2"],"introduced":["0"],"last_affected":[],"package":"jQuery.UI.Combined","purl":"pkg:nuget/jQuery.UI.Combined","source":"GHSA-h6gj-6jjq-h8g9"},{"ecosystem":"RubyGems","fixed":["8.0.0"],"introduced":["0"],"last_affected":[],"package":"jquery-ui-rails","purl":null,"source":"GHSA-h6gj-6jjq-h8g9"},{"ecosystem":"RubyGems","fixed":["8.0.0"],"introduced":["0"],"last_affected":[],"package":"jquery-ui-rails","purl":"pkg:gem/jquery-ui-rails","source":"GHSA-h6gj-6jjq-h8g9"},{"ecosystem":"npm","fixed":["1.13.2"],"introduced":["0"],"last_affected":[],"package":"jquery-ui","purl":null,"source":"GHSA-h6gj-6jjq-h8g9"},{"ecosystem":"npm","fixed":["1.13.2"],"introduced":["0"],"last_affected":[],"package":"jquery-ui","purl":"pkg:npm/jquery-ui","source":"GHSA-h6gj-6jjq-h8g9"}],"prev":{"headline":"Partial Path Traversal in com.amazonaws:aws-java-sdk-s3","id":"CVE-2022-31159"},"products":["jquery-ui"],"published":"2022-07-20","related":[{"cvss_score":10,"headline":"ProFTPD Improper Access Control","id":"CVE-2015-3306","kev_date_added":"2026-10-08","published":"2015-05-18"},{"cvss_score":9.9,"headline":"RoundCube Webmail Deserialization of Untrusted Data","id":"CVE-2025-49113","kev_date_added":"2026-02-20","published":"2025-06-02"},{"cvss_score":9.8,"headline":"GNU InetUtils Argument Injection","id":"CVE-2026-24061","kev_date_added":"2026-01-26","published":"2026-01-21"},{"cvss_score":9.8,"headline":"Linux Kernel Improper Check for Unusual or Exceptional Conditions","id":"CVE-2025-39682","kev_date_added":"2026-09-18","published":"2025-09-05"},{"cvss_score":9.8,"headline":"Mozilla Firefox Use-After-Free","id":"CVE-2024-9680","kev_date_added":"2024-10-15","published":"2024-10-09"},{"cvss_score":9.8,"headline":"RARLAB UnRAR Directory Traversal","id":"CVE-2022-30333","kev_date_added":"2022-08-09","published":"2022-05-09"},{"cvss_score":9.8,"headline":"Roundcube Webmail SQL Injection","id":"CVE-2021-44026","kev_date_added":"2023-06-22","published":"2021-11-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-04-22","vendors":["jquery"]},"summary":"An attacker can execute arbitrary JavaScript via XSS when refreshing a checkboxradio widget with encoded HTML entities in the label.","url":"https://insights.sbomify.com/CVE-2022-31160/"}