{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2025-2361 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2025-2361 is a medium-severity cross-site scripting vulnerability in Mercurial SCM, published on 17 Mar 2025. 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-2025-2361 and fix it if it is affected.\n\nWhat it is: CVE-2025-2361 is a medium-severity cross-site scripting vulnerability in Mercurial SCM, published on 17 Mar 2025. 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-2025-2361 in the wild and no public exploit code.\n\nAffected product: Mercurial SCM. 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-2025-2361/ (Markdown: https://insights.sbomify.com/CVE-2025-2361/index.md)","id":"CVE-2025-2361","markdown":"https://insights.sbomify.com/CVE-2025-2361/index.md","name":"CVE-2025-2361","record":{"aliases":["BELL-CVE-2025-2361","DEBIAN-CVE-2025-2361","DLA-4094-1","DSA-5883-1","GHSA-4hg3-3xxj-v749","MGASA-2025-0120","OESA-2026-2729","OESA-2026-2730","OESA-2026-2731","SUSE-SU-2025:1054-1","UBUNTU-CVE-2025-2361","openSUSE-SU-2025:14912-1"],"analysis":{"component_type":"developer_tool","fix_type":"patch","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Mercurial SCM","requires_auth":"none","summary":"Attackers can execute arbitrary scripts in victims' browsers via the Mercurial SCM web interface, potentially leading to session hijacking or data theft.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"A vulnerability was found in Mercurial SCM 4.5.3/71.19.145.211. It has been declared as problematic. This vulnerability affects unknown code of the component Web Interface. The manipulation of the argument cmd leads to cross site scripting. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.","ecosystems":["SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","SUSE:Linux Enterprise Module for Basesystem 15 SP6","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server 15 SP5-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","SUSE:Linux Enterprise Server for SAP Applications 15 SP5","SUSE:Manager Proxy 4.3","SUSE:Manager Server 4.3","openSUSE:Leap 15.6","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Mercurial SCM Web Interface cross site scripting","id":"CVE-2025-2361","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"xss","year":"2025"},"n_packages":13,"n_references":3,"next":{"headline":"PHPGurukul Pre-School Enrollment System contact-us.php sql injection","id":"CVE-2025-2362"},"packages":[{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOS","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSS","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-ESPOS","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSS","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Basesystem 15 SP6","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP6","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP4-LTSS","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSS","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP5-LTSS","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP5-LTSS","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP4","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP5","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Manager Proxy 4.3","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Manager%20Proxy%204.3","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"SUSE:Manager Server 4.3","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/suse/mercurial\u0026distro=SUSE%20Manager%20Server%204.3","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["5.9.1-150400.3.6.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/opensuse/mercurial\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:1054-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["6.9.4-1.1"],"introduced":["0"],"last_affected":[],"package":"mercurial","purl":"pkg:rpm/opensuse/mercurial\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2025:14912-1"}],"prev":{"headline":"D-Link DIR-823G UPnP Service HNAP1 SetUpnpSettings improper authorization","id":"CVE-2025-2360"},"products":["SCM"],"published":"2025-03-17","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-27","vendors":["Mercurial"]},"summary":"Attackers can execute arbitrary scripts in victims' browsers via the Mercurial SCM web interface, potentially leading to session hijacking or data theft.","url":"https://insights.sbomify.com/CVE-2025-2361/"}