CVE-2026-103503: CWE-295 Improper Certificate Validation in hexpm 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
Affected software
hexpm
hex
hexpm
hex
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.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.