{"answers":{"affected":"1 open source package ship an affected version, including reviewboard. It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-31330 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-31330 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-31330 is a medium-severity cross-site scripting vulnerability in n/a, published on 11 May 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-31330 and fix it if it is affected.\n\nWhat it is: CVE-2021-31330 is a medium-severity cross-site scripting vulnerability in n/a, published on 11 May 2022. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-31330 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- reviewboard (Bitnami): affected from 3.0.20 up to 3.0.20; no fix listed\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-31330/ (Markdown: https://insights.sbomify.com/CVE-2021-31330/index.md)","id":"CVE-2021-31330","markdown":"https://insights.sbomify.com/CVE-2021-31330/index.md","name":"CVE-2021-31330","record":{"aliases":["BIT-reviewboard-2021-31330","GHSA-mhg9-m5gc-hhqw"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Review Board","requires_auth":"low_privilege","summary":"An authenticated attacker can inject persistent malicious JavaScript via Markdown editing in Review Board, potentially leading to code execution or account takeover.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"review_board","vendor":"reviewboard"}],"cvss":{"score":5.4,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/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":"A Cross-Site Scripting (XSS) vulnerability exists within Review Board versions 3.0.20 and 4.0 RC1 and earlier. An authenticated attacker may inject malicious Javascript code when using Markdown editing within the application which remains persistent.","ecosystems":["Bitnami"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Cross-site scripting in n/a","id":"CVE-2021-31330","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Bitnami","product":null,"products":[],"type":"xss","year":"2021"},"n_packages":1,"n_references":4,"next":{"headline":"Missing authorization in SINAMICS Medium Voltage Products","id":"CVE-2021-31337"},"packages":[{"ecosystem":"Bitnami","fixed":[],"introduced":["3.0.20","4.0-beta1.0","4.0-beta2.0","4.0-rc1.0"],"last_affected":["3.0.20","4.0-beta1.0","4.0-beta2.0","4.0-rc1.0"],"package":"reviewboard","purl":"pkg:bitnami/reviewboard","source":"BIT-reviewboard-2021-31330"}],"prev":{"headline":"Cross-site scripting in n/a","id":"CVE-2021-31329"},"products":["n/a"],"published":"2022-05-11","related":[{"cvss_score":6.5,"headline":"Information disclosure in n/a","id":"CVE-2014-5028","kev_date_added":null,"published":"2018-03-29"},{"cvss_score":4.3,"headline":"Cross-site scripting in n/a","id":"CVE-2014-5027","kev_date_added":null,"published":"2014-07-25"},{"cvss_score":4.3,"headline":"Cross-site scripting in n/a","id":"CVE-2013-4795","kev_date_added":null,"published":"2014-04-11"},{"cvss_score":4.3,"headline":"Cross-site scripting in n/a","id":"CVE-2013-4519","kev_date_added":null,"published":"2013-11-15"},{"cvss_score":4.3,"headline":"Review Board Cross-site scripting (XSS) vulnerability in the reviews dropdown","id":"CVE-2013-2209","kev_date_added":null,"published":"2013-07-31"},{"cvss_score":4.3,"headline":"Cross-site scripting in n/a","id":"CVE-2011-4312","kev_date_added":null,"published":"2011-11-24"}],"sources":[{"class":"attribution","licence":"Apache-2.0","name":"Bitnami","prefix":"BIT"},{"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"An authenticated attacker can inject persistent malicious JavaScript via Markdown editing in Review Board, potentially leading to code execution or account takeover.","url":"https://insights.sbomify.com/CVE-2021-31330/"}