{"answers":{"affected":"It affects 3 products.","exploited":"There is no known exploitation of CVE-2018-4842 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2018-4842 yet. Limit exposure of the affected software until one is available.","what":"CVE-2018-4842 is a medium-severity cross-site scripting vulnerability in Siemens SCALANCE X-200IRT switch family (incl. SIPLUS NET variants), published on 14 Jun 2018. 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-2018-4842 and fix it if it is affected.\n\nWhat it is: CVE-2018-4842 is a medium-severity cross-site scripting vulnerability in Siemens SCALANCE X-200IRT switch family (incl. SIPLUS NET variants), published on 14 Jun 2018. 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-2018-4842 in the wild and no public exploit code.\n\nAffected product: Siemens SCALANCE X-200IRT switch family (incl. SIPLUS NET variants). 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-2018-4842/ (Markdown: https://insights.sbomify.com/CVE-2018-4842/index.md)","id":"CVE-2018-4842","markdown":"https://insights.sbomify.com/CVE-2018-4842/index.md","name":"CVE-2018-4842","record":{"aliases":["GHSA-89f2-v4jr-22cm"],"analysis":{"component_type":"network_device","fix_type":"upgrade","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":true,"product_category":"Industrial Ethernet Switch","requires_auth":"high_privilege","summary":"Authenticated attackers can inject malicious scripts into the switch's web interface when HRP redundancy is enabled, leading to XSS attacks against visiting users.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"siemens","cpe":[{"product":"scalance_x200_firmware","vendor":"siemens"},{"product":"scalance_x200irt_firmware","vendor":"siemens"},{"product":"scalance_x300_firmware","vendor":"siemens"}],"cvss":{"score":4.8,"severity":"medium","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A vulnerability has been identified in SCALANCE X-200IRT switch family (incl. SIPLUS NET variants) (All versions \u003c V5.4.1), SCALANCE X-200RNA switch family (All versions \u003c V3.2.7), SCALANCE X-300 switch family (incl. X408 and SIPLUS NET variants) (All versions \u003c V4.1.3). A remote, authenticated attacker with access to the configuration web server could be able to store script code on the web site, if the HRP redundancy option is set. This code could be executed in the web browser of victims visiting this web site (XSS), affecting its confidentiality, integrity and availability. User interaction is required for successful exploitation, as the user needs to visit the manipulated web site. At the stage of publishing this security advisory no public exploitation is known. The vendor has confirmed the vulnerability and provides mitigations to resolve it.","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 X-200IRT switch family (incl. SIPLUS NET variants)","id":"CVE-2018-4842","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2018"},"n_packages":0,"n_references":2,"next":{"headline":"Other in SIMATIC CP 343-1 (incl. SIPLUS variants)","id":"CVE-2018-4843"},"packages":[],"prev":{"headline":"Auth bypass in TIM 1531 IRC","id":"CVE-2018-4841"},"products":["SCALANCE X-200IRT switch family (incl. SIPLUS NET variants)","SCALANCE X-200RNA switch family","SCALANCE X-300 switch family (incl. X408 and SIPLUS NET variants)"],"published":"2018-06-14","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-05","vendors":["Siemens"]},"summary":"Authenticated attackers can inject malicious scripts into the switch's web interface when HRP redundancy is enabled, leading to XSS attacks against visiting users.","url":"https://insights.sbomify.com/CVE-2018-4842/"}