Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. mechanize
  4. ›
  5. CVE-2026-107399

CVE-2026-107399: Mechanize sends credential headers to another origin after a meta refresh

October 8, 2026

mechanize applied no trust boundary to a meta refresh, so credentials set through Mechanize#request_headers= followed a refresh that pointed at another origin.

References

  • github.com/advisories/GHSA-c6rp-p8xm-4q9f
  • github.com/sparklemotion/mechanize/commit/02a1235842d6eda8d4a5a3d8f13aba2cecf52e4f
  • github.com/sparklemotion/mechanize/commit/84c74df87d15f5d119df268ba6aa79bc1e16a2c3
  • github.com/sparklemotion/mechanize/pull/676
  • github.com/sparklemotion/mechanize/releases/tag/v2.14.1
  • github.com/sparklemotion/mechanize/security/advisories/GHSA-c6rp-p8xm-4q9f
  • nvd.nist.gov/vuln/detail/CVE-2026-107399

Code Behaviors & Features

Detect and mitigate CVE-2026-107399 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.14.1

Fixed versions

  • 2.14.1

Solution

Upgrade to version 2.14.1 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-522: Insufficiently Protected Credentials

Source file

gem/mechanize/CVE-2026-107399.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:11 +0000.