Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-103502

MEDIUM 5.9EPSS 18%

hex_core's default HTTP adapter doesn't verify TLS certificates on OTP 24 and 25

Mitigation

  • Upgrade hex_core to 0.20.0 or later.
  • Vendor workaround: Pass ssl options that verify the server certificate in the adapter config, for example {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}, use another HTTP adapter, or run on OTP 26 or later.

Who should check

  • Anyone running hexpm hex_core >= 0.1.0, < 0.20.0
  • Anyone running hexpm hex_core >= fbb6d9de472e5edb8d6fb6b32a91cb266137892e, < b7b3a42defb4ed8e20a5c68a4412ce68a95b7938

Vulnerability facts

Affected
hexpm hex_core >= 0.1.0, < 0.20.0; hexpm hex_core >= fbb6d9de472e5edb8d6fb6b32a91cb266137892e, < b7b3a42defb4ed8e20a5c68a4412ce68a95b7938
Fixed in
hexpm hex_core 0.20.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
5.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:L/VA:N/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Attack requirements: Present
  • Privileges required: None
  • User interaction: Active
  • Confidentiality impact: High
  • Integrity impact: Low
  • Availability impact: None
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
CWE
CWE-295, CWE-636
Published
Modified

Description

Improper Certificate Validation vulnerability in hexpm hex_core allows an attacker who can intercept HTTPS connections to impersonate hex.pm, repo.hex.pm or any other repository or API server to programs that use hex_core's default HTTP adapter on Erlang/OTP 24, or on OTP 25 when the operating system's CA certificates can't be loaded. hex_core:default_config/0 selects the built-in hex_http_httpc adapter. For an HTTPS request whose adapter config has no ssl option, hex_http_httpc:http_options/2 builds options that verify the server certificate against public_key:cacerts_get/0. When that call raises, the adapter prints a warning and sends the request without ssl options, so httpc uses the defaults of the ssl application, which before OTP 26 don't verify the server certificate. public_key:cacerts_get/0 doesn't exist on OTP 24, so every HTTPS request falls back there, and on OTP 25 it raises when no CA store is found. hex_core versions before 0.11.0 never set ssl options, so they don't verify the server certificate on OTP 25 and earlier whether or not a CA store is found. The fallback was intended and documented, but the documentation didn't make clear that it meant no certificate verification. Since hex_core 0.8.2 the README has warned that the built-in httpc adapter "has insecure default settings" and recommended other HTTP clients, and the adapter prints "using default ssl options which are insecure" on every request that falls back. hex_core 0.11.0 added certificate verification with the changelog entry "Use secure SSL defaults for OTP 25+". Neither the README nor the warning says that the server certificate isn't verified, the README doesn't say which OTP versions the warning applies to, and on OTP 25 without CA certificates the warning tells users to upgrade to OTP 25 or later, which they already run. This advisory is published so that users who took those notices as general advice know their HTTPS requests weren't authenticated. This issue affects hex_core: from 0.1.0 before 0.20.0.

Affected and fixed versions

Package / productAffectedFixedSource
hexpm hex_core>= 0.1.0, < 0.20.0—cvelist
hexpm hex_core>= fbb6d9de472e5edb8d6fb6b32a91cb266137892e, < b7b3a42defb4ed8e20a5c68a4412ce68a95b7938—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-103502. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-103502.md
Affected: hexpm hex_core >= 0.1.0, < 0.20.0; hexpm hex_core >= fbb6d9de472e5edb8d6fb6b32a91cb266137892e, < b7b3a42defb4ed8e20a5c68a4412ce68a95b7938
Fixed in: hexpm hex_core 0.20.0

Steps:
1. Search this machine and project for hexpm hex_core: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-103502 being exploited?

There is no confirmed exploitation: CVE-2026-103502 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-103502?

Medium: CVSS 5.9 (v4.0, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2026-103502?

hexpm hex_core >= 0.1.0, < 0.20.0; hexpm hex_core >= fbb6d9de472e5edb8d6fb6b32a91cb266137892e, < b7b3a42defb4ed8e20a5c68a4412ce68a95b7938.

Is there a fix for CVE-2026-103502?

Yes. Fixed in hexpm hex_core 0.20.0. Upgrade hex_core to 0.20.0 or later. Vendor workaround: Pass ssl options that verify the server certificate in the adapter config, for example {hex_http_httpc, #{http_options => [{ssl, SslOpts}]}}, use another HTTP adapter, or run on OTP 26 or later.

How do I check if I'm affected by CVE-2026-103502?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors