{"answers":{"affected":"2 open source packages ship an affected version, including mechanize.","exploited":"There is no known exploitation of CVE-2026-107399 in the wild and no public exploit code.","fix":"Upgrade mechanize to 2.14.1 or later.","what":"CVE-2026-107399 is a medium-severity vulnerability in sparklemotion mechanize, published on 8 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-107399 and fix it if it is affected.\n\nWhat it is: CVE-2026-107399 is a medium-severity vulnerability in sparklemotion mechanize, published on 8 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-107399 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mechanize (RubyGems): affected all versions; fixed in 2.14.1\n- mechanize (RubyGems): affected all versions; fixed in 2.14.1\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-107399/ (Markdown: https://insights.sbomify.com/CVE-2026-107399/index.md)","id":"CVE-2026-107399","markdown":"https://insights.sbomify.com/CVE-2026-107399/index.md","name":"CVE-2026-107399","record":{"aliases":["DEBIAN-CVE-2026-107399","GHSA-c6rp-p8xm-4q9f","UBUNTU-CVE-2026-107399"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby web automation library","requires_auth":"none","summary":"Mechanize leaks sensitive headers to external origins during meta refreshes if follow_meta_refresh is enabled, allowing attackers to steal tokens or cookies.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.8,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-522","name":"Insufficiently Protected Credentials"},{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"description":"The Mechanize library is used for automating interaction with websites. Prior to 2.14.1, Mechanize applies no origin trust boundary in Mechanize::HTTP::Agent#response_follow_meta_refresh when Mechanize#follow_meta_refresh is enabled. A page containing a meta refresh to another origin causes headers configured through Mechanize#request_headers= to be reapplied to the refresh request, allowing an attacker who controls content in the crawl to capture bearer tokens or session cookies. The default configuration is not affected because follow_meta_refresh is false, and the exposure is limited to caller-supplied default headers. This issue is fixed in version 2.14.1.","ecosystems":["RubyGems"],"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":"Mechanize sends credential headers to another origin after a meta refresh","id":"CVE-2026-107399","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"information_disclosure","year":"2026"},"n_packages":2,"n_references":5,"next":{"headline":"Security Vulnerability identified in IBM TRIRIGA - GWT Mock Authentication","id":"CVE-2026-107400"},"packages":[{"ecosystem":"RubyGems","fixed":["2.14.1"],"introduced":["0"],"last_affected":[],"package":"mechanize","purl":null,"source":"GHSA-c6rp-p8xm-4q9f"},{"ecosystem":"RubyGems","fixed":["2.14.1"],"introduced":["0"],"last_affected":[],"package":"mechanize","purl":"pkg:gem/mechanize","source":"GHSA-c6rp-p8xm-4q9f"}],"prev":{"headline":"Indico: Cross-Site-Scripting in minutes editor","id":"CVE-2026-107397"},"products":["mechanize"],"published":"2026-10-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":"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":"2026-10-14","vendors":["sparklemotion"]},"summary":"Mechanize leaks sensitive headers to external origins during meta refreshes if follow_meta_refresh is enabled, allowing attackers to steal tokens or cookies.","url":"https://insights.sbomify.com/CVE-2026-107399/"}