{"answers":{"affected":"It affects 34 products.","exploited":"There is no known exploitation of CVE-2021-20877 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2021-20877 yet. Limit exposure of the affected software until one is available.","what":"CVE-2021-20877 is a medium-severity cross-site scripting vulnerability in Canon laser printers and small office multifunctional printers, published on 8 Feb 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2021-20877 and fix it if it is affected.\n\nWhat it is: CVE-2021-20877 is a medium-severity cross-site scripting vulnerability in Canon laser printers and small office multifunctional printers, published on 8 Feb 2022. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2021-20877 in the wild and no public exploit code.\n\nAffected product: Canon laser printers and small office multifunctional printers. 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-2021-20877/ (Markdown: https://insights.sbomify.com/CVE-2021-20877/index.md)","id":"CVE-2021-20877","markdown":"https://insights.sbomify.com/CVE-2021-20877/index.md","name":"CVE-2021-20877","record":{"aliases":["GHSA-8g3c-f2w7-r54q"],"analysis":{"component_type":"network_device","fix_type":"patch","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Canon laser printers","requires_auth":"high_privilege","summary":"Remote attackers can inject arbitrary scripts into Canon laser printers and multifunctional devices, potentially compromising user sessions or device integrity.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"jpcert","cpe":[{"product":"2204f","vendor":"canon"},{"product":"2204n","vendor":"canon"},{"product":"2206if","vendor":"canon"},{"product":"lbp113w","vendor":"canon"},{"product":"lbp151dw","vendor":"canon"},{"product":"lbp162","vendor":"canon"},{"product":"lbp162dw","vendor":"canon"},{"product":"lbp162l","vendor":"canon"},{"product":"mf113w","vendor":"canon"},{"product":"mf212w","vendor":"canon"},{"product":"mf217w","vendor":"canon"},{"product":"mf222dw","vendor":"canon"},{"product":"mf224dw","vendor":"canon"},{"product":"mf227dw","vendor":"canon"},{"product":"mf229dw","vendor":"canon"},{"product":"mf232w","vendor":"canon"},{"product":"mf237w","vendor":"canon"},{"product":"mf242dw","vendor":"canon"},{"product":"mf244dw","vendor":"canon"},{"product":"mf245dw","vendor":"canon"},{"product":"mf247dw","vendor":"canon"},{"product":"mf249dw","vendor":"canon"},{"product":"mf262dw","vendor":"canon"},{"product":"mf264dw","vendor":"canon"},{"product":"mf265dw","vendor":"canon"},{"product":"mf267dw","vendor":"canon"},{"product":"mf269dw","vendor":"canon"},{"product":"mf269dw_vp","vendor":"canon"},{"product":"mf4570dn","vendor":"canon"},{"product":"mf4570dw","vendor":"canon"},{"product":"mf4770n","vendor":"canon"},{"product":"mf4780w","vendor":"canon"},{"product":"mf4880dw","vendor":"canon"},{"product":"mf4890dw","vendor":"canon"}],"cvss":{"score":4.8,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:H/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":"Cross-site scripting vulnerability in Canon laser printers and small office multifunctional printers (LBP162L/LBP162, MF4890dw, MF269dw/MF265dw/MF264dw/MF262dw, MF249dw/MF245dw/MF244dw/MF242dw/MF232w, and MF229dw/MF224dw/MF222dw sold in Japan, imageCLASS MF Series (MF113W/MF212W/MF217W/MF227DW/MF229DW, MF232W/MF244DW/MF247DW/MF249DW, MF264DW/MF267DW/MF269DW/MF269DW VP, and MF4570DN/MF4570DW/MF4770N/MF4880DW/MF4890DW) and imageCLASS LBP Series (LBP113W/LBP151DW/LBP162DW ) sold in the US, and iSENSYS (LBP162DW, LBP113W, LBP151DW, MF269dw, MF267dw, MF264dw, MF113w, MF249dw, MF247dw, MF244dw, MF237w, MF232w, MF229dw, MF217w, MF212w, MF4780w, and MF4890dw) and imageRUNNER (2206IF, 2204N, and 2204F) sold in Europe) allows remote attackers to inject an arbitrary script via unspecified vectors.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":null,"headline":"Cross-site scripting in Canon laser printers and small office multifunctional printers","id":"CVE-2021-20877","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2021"},"n_packages":0,"n_references":5,"next":{"headline":"Hilscher: Denial of Service vulnerability in PROFINET IO Device","id":"CVE-2021-20986"},"packages":[],"prev":{"headline":"Path traversal in GroupSession Free edition, GroupSession byCloud, GroupSession ZION","id":"CVE-2021-20876"},"products":["Canon laser printers and small office multifunctional printers"],"published":"2022-02-08","related":[],"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":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["Canon"]},"summary":"Remote attackers can inject arbitrary scripts into Canon laser printers and multifunctional devices, potentially compromising user sessions or device integrity.","url":"https://insights.sbomify.com/CVE-2021-20877/"}