Skip to main content

CVE-2026-107715: CWE-200: Exposure of Sensitive Information to an Unauthorized Actor in sparklemotion mechanize

0
Medium
VulnerabilityCVE-2026-107715cvecve-2026-107715cwe-200cwe-522
Published: 10/08/2026 (10/08/2026, 21:27:24 UTC)
Source: CVE Database V5
Vendor/Project: sparklemotion
Product: mechanize

Description

CVE-2026-107715 is a vulnerability in the sparklemotion mechanize library prior to version 2.14.1 where sensitive credential headers can be exposed to unauthorized actors after an HTTP redirect. The library incorrectly reapplies caller-supplied credential headers to redirected requests, allowing an attacker controlling the redirect target to capture bearer tokens or session cookies. This issue does not affect Mechanize's cookie jar or HTTP authentication store. The vulnerability is fixed in version 2.14.1.

CVSS v3.1

Score 6.8medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N

Affected software

sparklemotion

mechanize

Affected versions
<2.15.0

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/08/2026, 22:35:29 UTC

Technical Analysis

The Mechanize library versions before 2.14.1 improperly handle HTTP redirects by reapplying caller-supplied credential headers such as bearer tokens or session cookies to a different host after a redirect. This occurs because Mechanize#request_headers= is reapplied by Mechanize::HTTP::Agent#request_add_headers even after Mechanize::HTTP::Agent#response_redirect strips per-request headers. The protected header lists omit Proxy-Authorization and Cookie2, which contributes to the exposure. An attacker controlling the redirect target can capture these sensitive headers. The Mechanize#cookie_jar and Mechanize::HTTP::AuthStore are not affected by this issue. The vulnerability is resolved in version 2.14.1.

Potential Impact

An attacker who controls the redirect target can capture sensitive authentication credentials such as bearer tokens or session cookies supplied via request headers. This exposure can lead to unauthorized access to user sessions or resources. The vulnerability does not impact Mechanize's cookie jar or HTTP authentication store, limiting the scope to headers explicitly set by the caller. The CVSS v3.1 score is 6.8 (medium severity) with network attack vector, high confidentiality impact, no integrity or availability impact, and high complexity required.

Mitigation Recommendations

Upgrade to Mechanize version 2.14.1 or later, where this issue is fixed. No other mitigation is necessary as the fix addresses the improper header handling during redirects.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-10-08T17:21:52.975Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6ac80c6f2cdf04f6563805c2

Added to database: 10/08/2026, 21:34:39 UTC

Last enriched: 10/08/2026, 22:35:29 UTC

Last updated: 10/08/2026, 23:48:13 UTC

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses