{"answers":{"affected":"2 open source packages ship an affected version, including @appium/base-driver. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-58191 exists.","fix":"Upgrade @appium/base-driver to 10.7.0 or later.","what":"CVE-2026-58191 is a medium-severity cross-site scripting vulnerability in appium, published on 8 Jul 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-58191 and fix it if it is affected.\n\nWhat it is: CVE-2026-58191 is a medium-severity cross-site scripting vulnerability in appium, published on 8 Jul 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-58191 exists.\n\nAffected packages and fixed versions:\n- @appium/base-driver (npm): affected all versions; fixed in 10.7.0\n- @appium/base-driver (npm): affected all versions; fixed in 10.7.0\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-58191/ (Markdown: https://insights.sbomify.com/CVE-2026-58191/index.md)","id":"CVE-2026-58191","markdown":"https://insights.sbomify.com/CVE-2026-58191/index.md","name":"CVE-2026-58191","record":{"aliases":["GHSA-3wgp-x9p5-c7cc"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Appium automation framework","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript via reflected XSS in Appium's test routes, potentially compromising the server origin.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"appium\\/base-driver","vendor":"appium"}],"cvss":{"score":6.5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"},{"id":"CWE-489","name":"Active Debug Code"}],"description":"Appium is a cross-platform automation framework for all kinds of apps, built on top of the W3C WebDriver protocol. Prior to 10.7.0, Appium's base-driver unconditionally mounts the /test/guinea-pig, /test/guinea-pig-scrollable, and /test/guinea-pig-app-banner routes, and compileLodashTemplate reflects the throwError query parameter, comments POST field, and User-Agent request header into HTML without escaping, allowing reflected cross-site scripting and arbitrary JavaScript execution on the server origin. This issue is fixed in version 10.7.0.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":1,"refs":[{"date":null,"kind":"nuclei","ref":"http/cves/2026/CVE-2026-58191.yaml","stars":null,"title":"Appium base-driver \u003c=10.6.0 - Reflected Cross-Site Scripting"}],"tier":"weaponised"},"has_fix":true,"headline":"Appium: Reflected XSS / arbitrary JS in @appium/base-driver /test/guinea-pig* routes","id":"CVE-2026-58191","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":1,"next":{"headline":"Appium: Unauthenticated arbitrary file/directory deletion in @appium/storage-plugin","id":"CVE-2026-58192"},"packages":[{"ecosystem":"npm","fixed":["10.7.0"],"introduced":["0"],"last_affected":[],"package":"@appium/base-driver","purl":null,"source":"GHSA-3wgp-x9p5-c7cc"},{"ecosystem":"npm","fixed":["10.7.0"],"introduced":["0"],"last_affected":[],"package":"@appium/base-driver","purl":"pkg:npm/%40appium/base-driver","source":"GHSA-3wgp-x9p5-c7cc"}],"prev":{"headline":"Apache Traffic Server: Plugins resetting the redirect counter enable SSRF amplification","id":"CVE-2026-58189"},"products":["appium"],"published":"2026-07-08","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"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)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-07-09","vendors":["appium"]},"summary":"Attackers can execute arbitrary JavaScript via reflected XSS in Appium's test routes, potentially compromising the server origin.","url":"https://insights.sbomify.com/CVE-2026-58191/"}