{"answers":{"affected":"4 open source packages ship an affected version, including sidekiq. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-30151 exists.","fix":"Upgrade sidekiq to a fixed version for your release line: 5.2.0 or 6.2.1.","what":"CVE-2021-30151 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 6 Apr 2021. 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-2021-30151 and fix it if it is affected.\n\nWhat it is: CVE-2021-30151 is a medium-severity cross-site scripting vulnerability in Debian Debian Linux, published on 6 Apr 2021. 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-2021-30151 exists.\n\nAffected packages and fixed versions:\n- sidekiq (RubyGems): affected all versions; fixed in 5.2.0\n- sidekiq (RubyGems): affected all versions; fixed in 5.2.0\n- sidekiq (RubyGems): affected from 6.0.0; fixed in 6.2.1\n- sidekiq (RubyGems): affected from 6.0.0; fixed in 6.2.1\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-2021-30151/ (Markdown: https://insights.sbomify.com/CVE-2021-30151/index.md)","id":"CVE-2021-30151","markdown":"https://insights.sbomify.com/CVE-2021-30151/index.md","name":"CVE-2021-30151","record":{"aliases":["DEBIAN-CVE-2021-30151","GHSA-grh7-935j-hg6w","UBUNTU-CVE-2021-30151"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby background job library","requires_auth":"none","summary":"An attacker can execute arbitrary scripts in the context of other users via the queue name in the live-poll feature.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"sidekiq","vendor":"contribsys"},{"product":"debian_linux","vendor":"debian"}],"cvss":{"score":6.1,"severity":"medium","source":"nvd","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":"Sidekiq through 5.1.3 and 6.x through 6.2.0 allows XSS via the queue name of the live-poll feature when Internet Explorer is used.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2021/CVE-2021-30151.yaml","stars":null,"title":"Sidekiq \u003c=6.2.0 - Cross-Site Scripting"}],"tier":"weaponised"},"has_fix":true,"headline":"Cross-site Scripting in Sidekiq","id":"CVE-2021-30151","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":"debian:debian_linux","products":["debian:debian_linux"],"type":"xss","year":"2021"},"n_packages":4,"n_references":3,"next":{"headline":"Privilege escalation in n/a","id":"CVE-2021-30152"},"packages":[{"ecosystem":"RubyGems","fixed":["5.2.0"],"introduced":["0"],"last_affected":[],"package":"sidekiq","purl":null,"source":"GHSA-grh7-935j-hg6w"},{"ecosystem":"RubyGems","fixed":["5.2.0"],"introduced":["0"],"last_affected":[],"package":"sidekiq","purl":"pkg:gem/sidekiq","source":"GHSA-grh7-935j-hg6w"},{"ecosystem":"RubyGems","fixed":["6.2.1"],"introduced":["6.0.0"],"last_affected":[],"package":"sidekiq","purl":null,"source":"GHSA-grh7-935j-hg6w"},{"ecosystem":"RubyGems","fixed":["6.2.1"],"introduced":["6.0.0"],"last_affected":[],"package":"sidekiq","purl":"pkg:gem/sidekiq","source":"GHSA-grh7-935j-hg6w"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-30150"},"products":["n/a"],"published":"2021-04-06","related":[{"cvss_score":8.3,"headline":"Cross-site Scripting (XSS) - Reflected in sidekiq/sidekiq","id":"CVE-2023-1892","kev_date_added":null,"published":"2023-04-05"},{"cvss_score":7.5,"headline":"sidekiq Denial of Service vulnerability","id":"CVE-2023-26141","kev_date_added":null,"published":"2023-09-14"},{"cvss_score":7.5,"headline":"Denial of service in sidekiq","id":"CVE-2022-23837","kev_date_added":null,"published":"2022-01-21"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2023-46950","kev_date_added":null,"published":"2024-03-01"},{"cvss_score":6.1,"headline":"Cross-site scripting in n/a","id":"CVE-2023-46951","kev_date_added":null,"published":"2024-03-01"}],"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":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"An attacker can execute arbitrary scripts in the context of other users via the queue name in the live-poll feature.","url":"https://insights.sbomify.com/CVE-2021-30151/"}