{"answers":{"affected":"It affects 4 products.","exploited":"There is no known exploitation of CVE-2018-7831 in the wild and no public exploit code.","fix":"No fix has been published for CVE-2018-7831 yet. Limit exposure of the affected software until one is available.","what":"CVE-2018-7831 is a high-severity cross-site scripting vulnerability in Schneider Electric SE Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200, published on 30 Nov 2018. 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-2018-7831 and fix it if it is affected.\n\nWhat it is: CVE-2018-7831 is a high-severity cross-site scripting vulnerability in Schneider Electric SE Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200, published on 30 Nov 2018. 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-2018-7831 in the wild and no public exploit code.\n\nAffected product: Schneider Electric SE Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200. 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-7831/ (Markdown: https://insights.sbomify.com/CVE-2018-7831/index.md)","id":"CVE-2018-7831","markdown":"https://insights.sbomify.com/CVE-2018-7831/index.md","name":"CVE-2018-7831","record":{"aliases":["GHSA-p8fg-26j2-2q9g"],"analysis":{"component_type":"ics_ot","fix_type":"patch","impacts":["privilege_escalation","account_takeover"],"network_reachable":"yes","non_default_config":false,"product_category":"Schneider Electric PLC","requires_auth":"none","summary":"An attacker can exploit a cross-site scripting vulnerability in Schneider Electric PLC web servers to force password changes on authenticated users.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"schneider","cpe":[{"product":"modicom_bmxnor0200h_firmware","vendor":"schneider-electric"},{"product":"modicom_m340_firmware","vendor":"schneider-electric"},{"product":"modicom_premium_firmware","vendor":"schneider-electric"},{"product":"modicom_quantum_firmware","vendor":"schneider-electric"}],"cvss":{"score":8.8,"severity":"high","source":"nvd","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","version":"3.0"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-352","name":"Cross-Site Request Forgery"}],"description":"An Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) vulnerability exists in the embedded web servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200 allowing an attacker to send a specially crafted URL to a currently authenticated web server user to execute a password change on the web server.","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 Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200","id":"CVE-2018-7831","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2018"},"n_packages":0,"n_references":2,"next":{"headline":"Code injection in Pro-Face GP-Pro EX v4.08 and previous versions","id":"CVE-2018-7832"},"packages":[],"prev":{"headline":"Other in Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200","id":"CVE-2018-7830"},"products":["Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200"],"published":"2018-11-30","related":[{"cvss_score":9.8,"headline":"Auth bypass in Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200","id":"CVE-2018-7809","kev_date_added":null,"published":"2018-11-30"},{"cvss_score":9.8,"headline":"Auth bypass in Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200","id":"CVE-2018-7811","kev_date_added":null,"published":"2018-11-30"},{"cvss_score":7.5,"headline":"Information disclosure in Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200","id":"CVE-2018-7812","kev_date_added":null,"published":"2018-12-17"},{"cvss_score":7.5,"headline":"Denial of service in Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200","id":"CVE-2018-7833","kev_date_added":null,"published":"2018-12-17"},{"cvss_score":7.5,"headline":"Other in Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200","id":"CVE-2018-7830","kev_date_added":null,"published":"2018-11-30"},{"cvss_score":6.1,"headline":"Open redirect in Embedded Web Servers in all Modicon M340, Premium, Quantum PLCs and BMXNOR0200","id":"CVE-2018-7804","kev_date_added":null,"published":"2018-12-17"}],"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":["Schneider Electric SE"]},"summary":"An attacker can exploit a cross-site scripting vulnerability in Schneider Electric PLC web servers to force password changes on authenticated users.","url":"https://insights.sbomify.com/CVE-2018-7831/"}