{"answers":{"affected":"6 open source packages ship an affected version, including omero-web and omero-figure. It affects 2 products.","exploited":"There is no known exploitation of CVE-2021-41132 in the wild and no public exploit code.","fix":"Upgrade omero-web to 5.11.0 or later.","what":"CVE-2021-41132 is a critical cross-site scripting vulnerability in omero-web, published on 14 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-41132 and fix it if it is affected.\n\nWhat it is: CVE-2021-41132 is a critical cross-site scripting vulnerability in omero-web, published on 14 Oct 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-41132 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- omero-web (PyPI): affected all versions; fixed in 5.11.0\n- omero-web (PyPI): affected all versions; fixed in 5.11.0\n- omero-web (PyPI): affected all versions; fixed in 5.11.0\n- omero-figure (PyPI): affected all versions; fixed in 4.4.1\n- omero-figure (PyPI): affected all versions; fixed in 4.4.1\n- omero-figure (PyPI): affected all versions; fixed in 4.4.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-41132/ (Markdown: https://insights.sbomify.com/CVE-2021-41132/index.md)","id":"CVE-2021-41132","markdown":"https://insights.sbomify.com/CVE-2021-41132/index.md","name":"CVE-2021-41132","record":{"aliases":["GHSA-g67g-hvc3-xmvf","PYSEC-2021-372","PYSEC-2021-379"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"OMERO web client","requires_auth":"none","summary":"Attackers can execute arbitrary scripts via unsanitized input in OMERO.web templates, potentially compromising user sessions.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"omero-figure","vendor":"openmicroscopy"},{"product":"omero-web","vendor":"openmicroscopy"}],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"description":"OMERO.web provides a web based client and plugin infrastructure. In versions prior to 5.11.0, a variety of templates do not perform proper sanitization through HTML escaping. Due to the lack of sanitization and use of ``jQuery.html()``, there are a whole host of cross-site scripting possibilities with specially crafted input to a variety of fields. This issue is patched in version 5.11.0. There are no known workarounds aside from upgrading.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Inconsistent input sanitisation leads to XSS vectors","id":"CVE-2021-41132","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"xss","year":"2021"},"n_packages":6,"n_references":3,"next":{"headline":"Sandbox bypass via recent VFS-manipulating syscalls","id":"CVE-2021-41133"},"packages":[{"ecosystem":"PyPI","fixed":["4.4.1"],"introduced":["0"],"last_affected":[],"package":"omero-figure","purl":null,"source":"GHSA-g67g-hvc3-xmvf"},{"ecosystem":"PyPI","fixed":["4.4.1"],"introduced":["0"],"last_affected":[],"package":"omero-figure","purl":"pkg:pypi/omero-figure","source":"GHSA-g67g-hvc3-xmvf"},{"ecosystem":"PyPI","fixed":["4.4.1"],"introduced":["0"],"last_affected":[],"package":"omero-figure","purl":"pkg:pypi/omero-figure","source":"PYSEC-2021-379"},{"ecosystem":"PyPI","fixed":["5.11.0"],"introduced":["0"],"last_affected":[],"package":"omero-web","purl":null,"source":"GHSA-g67g-hvc3-xmvf"},{"ecosystem":"PyPI","fixed":["5.11.0"],"introduced":["0"],"last_affected":[],"package":"omero-web","purl":"pkg:pypi/omero-web","source":"GHSA-g67g-hvc3-xmvf"},{"ecosystem":"PyPI","fixed":["5.11.0"],"introduced":["0"],"last_affected":[],"package":"omero-web","purl":"pkg:pypi/omero-web","source":"PYSEC-2021-372"}],"prev":{"headline":"Client metadata path-traversal in python-tuf","id":"CVE-2021-41131"},"products":["omero-web"],"published":"2021-10-14","related":[],"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":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["ome"]},"summary":"Attackers can execute arbitrary scripts via unsanitized input in OMERO.web templates, potentially compromising user sessions.","url":"https://insights.sbomify.com/CVE-2021-41132/"}