{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-21145 exists.","fix":"No fix has been published for CVE-2022-21145 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-21145 is a critical cross-site scripting vulnerability in lansweeper, published on 14 Apr 2022. An attacker needs administrator access to exploit it, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-21145 and fix it if it is affected.\n\nWhat it is: CVE-2022-21145 is a critical cross-site scripting vulnerability in lansweeper, published on 14 Apr 2022. An attacker needs administrator access to exploit it, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2022-21145 exists.\n\nAffected product: lansweeper. No package-level version data is available, so check the vendor advisory linked from the reference page.\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-21145/ (Markdown: https://insights.sbomify.com/CVE-2022-21145/index.md)","id":"CVE-2022-21145","markdown":"https://insights.sbomify.com/CVE-2022-21145/index.md","name":"CVE-2022-21145","record":{"aliases":["GHSA-c8r6-vf82-fj44"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Lansweeper IT asset management","requires_auth":"high_privilege","summary":"Attackers can inject arbitrary JavaScript via stored XSS in Lansweeper, potentially leading to code execution or account takeover.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"talos","cpe":[{"product":"lansweeper","vendor":"lansweeper"}],"cvss":{"score":9.1,"severity":"critical","source":"cna","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"description":"A stored cross-site scripting vulnerability exists in the WebUserActions.aspx functionality of Lansweeper lansweeper 9.1.20.2. A specially-crafted HTTP request can lead to arbitrary Javascript code injection. An attacker can send an HTTP request to trigger this vulnerability.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":null,"headline":"Cross-site scripting in lansweeper","id":"CVE-2022-21145","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2022"},"n_packages":0,"n_references":2,"next":{"headline":"ICSA-22-062-01 IPCOMM ipDIO","id":"CVE-2022-21146"},"packages":[],"prev":{"headline":"Denial of Service (DoS)","id":"CVE-2022-21144"},"products":["lansweeper"],"published":"2022-04-14","related":[{"cvss_score":9.9,"headline":"Path traversal in lansweeper","id":"CVE-2022-29517","kev_date_added":null,"published":"2022-12-19"},{"cvss_score":9.9,"headline":"Path traversal in lansweeper","id":"CVE-2022-32573","kev_date_added":null,"published":"2022-12-19"},{"cvss_score":9.9,"headline":"XML external entity in n/a","id":"CVE-2017-13706","kev_date_added":null,"published":"2017-10-10"},{"cvss_score":9.8,"headline":"Hardcoded credentials in n/a","id":"CVE-2020-14011","kev_date_added":null,"published":"2020-06-15"},{"cvss_score":9.8,"headline":"Code injection in n/a","id":"CVE-2015-9264","kev_date_added":null,"published":"2018-08-27"},{"cvss_score":9.1,"headline":"Path traversal in lansweeper","id":"CVE-2022-27498","kev_date_added":null,"published":"2022-12-19"},{"cvss_score":9.1,"headline":"Cross-site scripting in lansweeper","id":"CVE-2022-28703","kev_date_added":null,"published":"2022-12-19"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"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)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-04-15","vendors":["Lansweeper"]},"summary":"Attackers can inject arbitrary JavaScript via stored XSS in Lansweeper, potentially leading to code execution or account takeover.","url":"https://insights.sbomify.com/CVE-2022-21145/"}