{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4218 exists.","fix":"No fix has been published for CVE-2025-4218 yet. Limit exposure of the affected software until one is available.","what":"CVE-2025-4218 is a medium-severity code injection vulnerability in handrew browserpilot, published on 2 May 2025. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-4218 and fix it if it is affected.\n\nWhat it is: CVE-2025-4218 is a medium-severity code injection vulnerability in handrew browserpilot, published on 2 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-4218 exists.\n\nAffected product: handrew browserpilot. 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-4218/ (Markdown: https://insights.sbomify.com/CVE-2025-4218/index.md)","id":"CVE-2025-4218","markdown":"https://insights.sbomify.com/CVE-2025-4218/index.md","name":"CVE-2025-4218","record":{"aliases":["GHSA-m6jr-jq3q-3pp7"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Python browser automation library","requires_auth":"low_privilege","summary":"Local attackers can execute arbitrary code via the instructions argument in the GPTSeleniumAgent function of the browserpilot library.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"browserpilot","vendor":"andrewhhan"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"A vulnerability was found in handrew browserpilot up to 0.2.51. It has been declared as critical. Affected by this vulnerability is the function GPTSeleniumAgent of the file browserpilot/browserpilot/agents/gpt_selenium_agent.py. The manipulation of the argument instructions leads to code injection. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":null,"headline":"handrew browserpilot gpt_selenium_agent.py GPTSeleniumAgent code injection","id":"CVE-2025-4218","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"code_injection","year":"2025"},"n_packages":0,"n_references":5,"next":{"headline":"DPEPress \u003c= 0.3 - Authenticated (Contributor+) Stored Cross-Site Scripting","id":"CVE-2025-4219"},"packages":[],"prev":{"headline":"WP YouTube Video Optimizer \u003c= 1.2 - Authenticated (Contributor+) Stored Cross-Site Scripting","id":"CVE-2025-4217"},"products":["browserpilot"],"published":"2025-05-02","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":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-05-05","vendors":["handrew"]},"summary":"Local attackers can execute arbitrary code via the instructions argument in the GPTSeleniumAgent function of the browserpilot library.","url":"https://insights.sbomify.com/CVE-2025-4218/"}