{"answers":{"affected":"It affects 30 products.","exploited":"There is no known exploitation of CVE-2022-40631 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2022-40631 yet. Limit exposure of the affected software until one is available.","what":"CVE-2022-40631 is a medium-severity cross-site scripting vulnerability in Siemens SCALANCE X200-4P IRT, published on 11 Oct 2022. 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-2022-40631 and fix it if it is affected.\n\nWhat it is: CVE-2022-40631 is a medium-severity cross-site scripting vulnerability in Siemens SCALANCE X200-4P IRT, published on 11 Oct 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-40631 in the wild and no public exploit code.\n\nAffected product: Siemens SCALANCE X200-4P IRT. 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-40631/ (Markdown: https://insights.sbomify.com/CVE-2022-40631/index.md)","id":"CVE-2022-40631","markdown":"https://insights.sbomify.com/CVE-2022-40631/index.md","name":"CVE-2022-40631","record":{"aliases":["GHSA-hxq2-rx6m-372p"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Siemens SCALANCE switch","requires_auth":"none","summary":"Cross-site scripting vulnerability in Siemens SCALANCE switches allows attackers to hijack user sessions.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"siemens","cpe":[{"product":"scalance_x200-4p_irt_firmware","vendor":"siemens"},{"product":"scalance_x201-3p_irt_firmware","vendor":"siemens"},{"product":"scalance_x201-3p_irt_pro_firmware","vendor":"siemens"},{"product":"scalance_x202-2irt_firmware","vendor":"siemens"},{"product":"scalance_x202-2p_irt_firmware","vendor":"siemens"},{"product":"scalance_x202-2p_irt_pro_firmware","vendor":"siemens"},{"product":"scalance_x204-2_firmware","vendor":"siemens"},{"product":"scalance_x204-2fm_firmware","vendor":"siemens"},{"product":"scalance_x204-2ld_firmware","vendor":"siemens"},{"product":"scalance_x204-2ld_ts_firmware","vendor":"siemens"},{"product":"scalance_x204-2ts_firmware","vendor":"siemens"},{"product":"scalance_x204irt_firmware","vendor":"siemens"},{"product":"scalance_x204irt_pro_firmware","vendor":"siemens"},{"product":"scalance_x206-1_firmware","vendor":"siemens"},{"product":"scalance_x206-1ld_firmware","vendor":"siemens"},{"product":"scalance_x208_firmware","vendor":"siemens"},{"product":"scalance_x208pro_firmware","vendor":"siemens"},{"product":"scalance_x212-2_firmware","vendor":"siemens"},{"product":"scalance_x212-2ld_firmware","vendor":"siemens"},{"product":"scalance_x216_firmware","vendor":"siemens"},{"product":"scalance_x224_firmware","vendor":"siemens"},{"product":"scalance_xf201-3p_irt_firmware","vendor":"siemens"},{"product":"scalance_xf202-2p_irt_firmware","vendor":"siemens"},{"product":"scalance_xf204-2_firmware","vendor":"siemens"},{"product":"scalance_xf204-2ba_irt_firmware","vendor":"siemens"},{"product":"scalance_xf204_firmware","vendor":"siemens"},{"product":"scalance_xf204irt_firmware","vendor":"siemens"},{"product":"scalance_xf206-1_firmware","vendor":"siemens"},{"product":"scalance_xf208_firmware","vendor":"siemens"},{"product":"siplus_net_scalance_x202-2p_irt_firmware","vendor":"siemens"}],"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":"A vulnerability has been identified in SCALANCE X200-4P IRT (All versions \u003c V5.5.0), SCALANCE X201-3P IRT (All versions \u003c V5.5.0), SCALANCE X201-3P IRT PRO (All versions \u003c V5.5.0), SCALANCE X202-2IRT (All versions \u003c V5.5.0), SCALANCE X202-2P IRT (All versions \u003c V5.5.0), SCALANCE X202-2P IRT PRO (All versions \u003c V5.5.0), SCALANCE X204-2 (All versions \u003c V5.2.5), SCALANCE X204-2FM (All versions \u003c V5.2.5), SCALANCE X204-2LD (All versions \u003c V5.2.5), SCALANCE X204-2LD TS (All versions \u003c V5.2.5), SCALANCE X204-2TS (All versions \u003c V5.2.5), SCALANCE X204IRT (All versions \u003c V5.5.0), SCALANCE X204IRT PRO (All versions \u003c V5.5.0), SCALANCE X206-1 (All versions \u003c V5.2.5), SCALANCE X206-1LD (All versions \u003c V5.2.5), SCALANCE X208 (All versions \u003c V5.2.5), SCALANCE X208PRO (All versions \u003c V5.2.5), SCALANCE X212-2 (All versions \u003c V5.2.5), SCALANCE X212-2LD (All versions \u003c V5.2.5), SCALANCE X216 (All versions \u003c V5.2.5), SCALANCE X224 (All versions \u003c V5.2.5), SCALANCE XF201-3P IRT (All versions \u003c V5.5.0), SCALANCE XF202-2P IRT (All versions \u003c V5.5.0), SCALANCE XF204 (All versions \u003c V5.2.5), SCALANCE XF204-2 (All versions \u003c V5.2.5), SCALANCE XF204-2BA IRT (All versions \u003c V5.5.0), SCALANCE XF204IRT (All versions \u003c V5.5.0), SCALANCE XF206-1 (All versions \u003c V5.2.5), SCALANCE XF208 (All versions \u003c V5.2.5), SIPLUS NET SCALANCE X202-2P IRT (All versions \u003c V5.5.0). There is a cross-site scripting vulnerability on the affected devices, that if used by a threat actor, it could result in session hijacking.","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 SCALANCE X200-4P IRT","id":"CVE-2022-40631","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2022"},"n_packages":0,"n_references":1,"next":{"headline":"WordPress wpForo Forum plugin \u003c= 2.0.5 - Cross-Site Request Forgery (CSRF) vulnerability","id":"CVE-2022-40632"},"packages":[],"prev":{"headline":"Improper Session Management Vulnerability in Tacitine Firewall","id":"CVE-2022-40630"},"products":["SCALANCE X200-4P IRT","SCALANCE X201-3P IRT","SCALANCE X201-3P IRT PRO","SCALANCE X202-2IRT","SCALANCE X202-2P IRT","SCALANCE X202-2P IRT PRO","SCALANCE X204-2","SCALANCE X204-2FM","SCALANCE X204-2LD","SCALANCE X204-2LD TS","SCALANCE X204-2TS","SCALANCE X204IRT","SCALANCE X204IRT PRO","SCALANCE X206-1","SCALANCE X206-1LD","SCALANCE X208","SCALANCE X208PRO","SCALANCE X212-2","SCALANCE X212-2LD","SCALANCE X216","SCALANCE X224","SCALANCE XF201-3P IRT","SCALANCE XF202-2P IRT","SCALANCE XF204","SCALANCE XF204-2","SCALANCE XF204-2BA IRT","SCALANCE XF204IRT","SCALANCE XF206-1","SCALANCE XF208","SIPLUS NET SCALANCE X202-2P IRT"],"published":"2022-10-11","related":[{"cvss_score":9.8,"headline":"Memory corruption in SCALANCE X200-4P IRT","id":"CVE-2021-25668","kev_date_added":null,"published":"2021-04-22"},{"cvss_score":9.8,"headline":"Memory corruption in SCALANCE X200-4P IRT","id":"CVE-2021-25669","kev_date_added":null,"published":"2021-04-22"},{"cvss_score":9.6,"headline":"Denial of service in SCALANCE X200-4P IRT","id":"CVE-2022-26649","kev_date_added":null,"published":"2022-07-12"},{"cvss_score":8.8,"headline":"Weak cryptography in SCALANCE X200-4P IRT","id":"CVE-2022-26647","kev_date_added":null,"published":"2022-07-12"},{"cvss_score":8.2,"headline":"Denial of service in SCALANCE X200-4P IRT","id":"CVE-2022-26648","kev_date_added":null,"published":"2022-07-12"},{"cvss_score":6.7,"headline":"Weak cryptography in SCALANCE X200-4P IRT","id":"CVE-2023-29054","kev_date_added":null,"published":"2023-04-11"}],"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":["Siemens"]},"summary":"Cross-site scripting vulnerability in Siemens SCALANCE switches allows attackers to hijack user sessions.","url":"https://insights.sbomify.com/CVE-2022-40631/"}