Skip to main content

CVE-2026-103503: CWE-295 Improper Certificate Validation in hexpm hex

0
Medium
VulnerabilityCVE-2026-103503cvecve-2026-103503cwe-295
Published: 10/12/2026 (10/12/2026, 15:17:45 UTC)
Source: CVE Database V5
Vendor/Project: hexpm
Product: hex

Description

CVE-2026-103503 is an improper certificate validation vulnerability in the hexpm hex package affecting versions from 0.20.2 up to but not including 2.5.2. The issue arises when an attacker intercepts HTTPS connections and holds a certificate issued by a CA included in Hex's bundled CA store, but not in the user-configured CA store (cacerts_path). Due to flawed validation logic, the client may accept a server certificate chain that includes a bundled CA certificate even if the configured CA store excludes that CA. Hostname verification remains enforced. The CVSS 4.0 score is 5.9, indicating medium severity.

CVSS v4.0

Score 5.9medium

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
High
Vuln. Integrity
Low
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Affected software

hexpm

hex

Affected versions
>=0.20.2 <2.5.2

hexpm

hex

GitHub Actionsmore threats →cve
hex
pkg:github/hex
Affected versions
>=0.20.2 <2.5.2
GitHub Actionsmore threats →cve
hexpm/hex
pkg:github/hexpm/hex
CPE configurations
cpe:2.3:a:hexpm:hex:*:*:*:*:*:*:*:*

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/12/2026, 15:48:36 UTC

Technical Analysis

The vulnerability in hexpm hex involves improper certificate validation related to the handling of the cacerts_path option, which specifies a custom CA certificate store. Although Hex.HTTP.SSL.ssl_opts/1 uses the configured CA store, the partial_chain callback is always built from the bundled CA store. This causes Hex.HTTP.SSL.partial_chain/2 to accept server certificate chains if any certificate in the chain has the same public key as a bundled CA certificate, effectively bypassing the configured CA store restrictions. This allows an attacker who can intercept HTTPS connections and possesses a certificate from a bundled CA (not trusted in the configured store) to impersonate a Hex host to clients using the vulnerable versions. Hostname verification is still applied, limiting some attack vectors. The affected versions are >=0.20.2 and <2.5.2.

Potential Impact

An attacker capable of intercepting HTTPS traffic and holding a certificate issued by a CA included in Hex's bundled CA store (but excluded from the user-configured CA store) can impersonate a Hex host to clients that use the vulnerable versions and set cacerts_path to exclude that CA. This undermines the trust model of TLS connections in these scenarios, potentially leading to man-in-the-middle attacks. However, hostname verification still applies, which reduces the attack surface. There are no known exploits in the wild at this time.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should be cautious when setting cacerts_path to a CA store that excludes CAs present in Hex's bundled store. Monitoring vendor communications for updates or patches is recommended.

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
EEF
Date Reserved
2026-10-08T15:45:02.372Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6accfdf32cdf04f656a88556

Added to database: 10/12/2026, 15:34:11 UTC

Last enriched: 10/12/2026, 15:48:36 UTC

Last updated: 10/12/2026, 18:57:55 UTC

Views: 13

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