Skip to content

hex

Unsafe Deserialization of Erlang Terms in hex_core

CVE-2026-21619Published 27 Feb 2026, 17:57 UTC

Real-world risk

0.5/ 10Low

Routine

If the vulnerable configuration applies to you: 1.1

PreliminaryFrom the CVSS vector only · confidence low

CVSS

2.0

scored by the vendor (CNA), CVSS 4.0

In plain words

No plain-language summary yet. The original description is below.

Original description (from EEF)

Uncontrolled Resource Consumption, Deserialization of Untrusted Data vulnerability in hexpm hex_core (hex_api modules), hexpm hex (mix_hex_api modules), erlang rebar3 (r3_hex_api modules) allows Object Injection, Excessive Allocation. This vulnerability is associated with program files src/hex_api.erl, src/mix_hex_api.erl, apps/rebar/src/vendored/r3_hex_api.erl and program routines hex_api:request/4, mix_hex_api:request/4, r3_hex_api:request/4. This issue affects rebar3: from 3.9.1 before 3.27.0; hex: from 2.3.0 before 2.3.2; hex_core: from 0.1.0 before 0.12.1.

Am I affected?

ProductAffected versions (from the sources)Fixed in
hexNiche>= 2.3.0, < 2.3.2; >= 0.1.0, < 0.12.12.3.2, 0.12.1
hexNiche>= 2.3.0, < 2.3.22.3.2
hex_coreNiche>= 0.1.0, < 0.12.10.12.1
rebar3Niche>= 3.9.1, < 3.27.03.27.0

What to do

Update to a fixed version: 2.3.2, 0.12.1, 3.27.0.

Why this score

FactorValueEvidence×
ImpactMinorReflected XSS, CSRF with low effect, open redirect, minor leakFrom the CVSS vector0.30
Attacker positionInternetAnyone on the Internet can reach a typical deploymentFrom the CVSS vector1.00
Privileges neededLowA real low-privileged accountFrom the CVSS vector0.60
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationUncommonNeeds a non-default feature that a minority enablesFrom the CVSS vector0.45
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T1: Nothing known (× 0.85)

The default for a new disclosure

EPSS 0.7% chance of exploitation in 30 days (percentile 56), as of 2026-12-03.

The arithmetic
  1. Prerequisites multiplied together0.189
  2. Threat T1: Nothing known0.850
  3. 10 × impact 0.3 × prerequisites 0.189 × threat 0.850.482
  4. Rounded to one decimal between 0.1 and 100.5

How the score works

Exploitation and evidence timeline

  1. 27 Feb 2026 Published
  2. 2 Dec 2026 Risk 0.5 (cvss fallback)

Weakness

CWE-400, CWE-502

References

Get alerts for hex

Free email or text alerts when a vulnerability in hex reaches risk 8 or higher. Nothing else.