{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42030 exists.","fix":"Upgrade to a fixed version.","what":"CVE-2026-42030 is a medium-severity cross-site scripting vulnerability in MapServer, published on 8 May 2026. 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-2026-42030 and fix it if it is affected.\n\nWhat it is: CVE-2026-42030 is a medium-severity cross-site scripting vulnerability in MapServer, published on 8 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42030 exists.\n\nAffected product: MapServer. 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-2026-42030/ (Markdown: https://insights.sbomify.com/CVE-2026-42030/index.md)","id":"CVE-2026-42030","markdown":"https://insights.sbomify.com/CVE-2026-42030/index.md","name":"CVE-2026-42030","record":{"aliases":["DEBIAN-CVE-2026-42030","GHSA-4g9f-ph64-hg2x","UBUNTU-CVE-2026-42030"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"GIS web server","requires_auth":"none","summary":"An unauthenticated attacker can inject arbitrary HTML/JavaScript into users' browsers via crafted WMS URLs in MapServer's OpenLayers viewer.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"mapserver","vendor":"osgeo"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","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-80","name":"Improper Neutralization of Script-Related HTML Tags in a Web Page"}],"description":"MapServer is a system for developing web-based GIS applications. From version 6.0 to before version 8.6.2, a reflected XSS vulnerability in MapServer's WMS server allows an unauthenticated attacker to inject arbitrary HTML/JavaScript into the browser of any user who opens a crafted WMS URL. The vulnerability is triggered via FORMAT=application/openlayers combined with an unsanitized SRS parameter in WMS 1.3.0 requests. This issue has been patched in version 8.6.2.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"MapServer: Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS) in OpenLayers viewer","id":"CVE-2026-42030","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2026"},"n_packages":0,"n_references":2,"next":{"headline":"CKAN: Unauthenticated SQL Injection and Authorization Bypass in `datastore_search_sql`","id":"CVE-2026-42031"},"packages":[],"prev":{"headline":"This CVE is a duplicate of another CVE.","id":"CVE-2026-42029"},"products":["MapServer"],"published":"2026-05-08","related":[{"cvss_score":10,"headline":"Security feature bypass in n/a","id":"CVE-2010-2540","kev_date_added":null,"published":"2010-08-02"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-2281","kev_date_added":null,"published":"2009-10-23"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-0839","kev_date_added":null,"published":"2009-03-31"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-0840","kev_date_added":null,"published":"2009-03-31"},{"cvss_score":10,"headline":"Path traversal in n/a","id":"CVE-2009-0841","kev_date_added":null,"published":"2009-03-31"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-1176","kev_date_added":null,"published":"2009-03-31"},{"cvss_score":10,"headline":"Memory corruption in n/a","id":"CVE-2009-1177","kev_date_added":null,"published":"2009-03-31"}],"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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-05-08","vendors":["MapServer"]},"summary":"An unauthenticated attacker can inject arbitrary HTML/JavaScript into users' browsers via crafted WMS URLs in MapServer's OpenLayers viewer.","url":"https://insights.sbomify.com/CVE-2026-42030/"}