Skip to content

HanLP

hankcs HanLP torch_util.py load_word2vec_as_vocab_tensor deserialization

CVE-2026-112079Published 19 Oct 2026, 04:45 UTC

Real-world risk

2.0/ 10Low

Routine

PreliminaryFrom the CVSS vector only · confidence low

CVSS

5.3

scored by the vendor (CNA), CVSS 4.0

In plain words

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

Original description (from VulDB)

A vulnerability has been found in hankcs HanLP up to 2.1.0-beta.64. The affected element is the function load_word2vec_as_vocab_tensor of the file hanlp/utils/torch_util.py. The manipulation of the argument vectors.vocab leads to deserialization. The attack is possible to be carried out remotely. The exploit has been disclosed to the public and may be used. The project was informed of the problem early through an issue report but has not responded yet.

Am I affected?

ProductAffected versions (from the sources)Fixed in
HanLPNiche= 2.1.0-beta.0; = 2.1.0-beta.1; = 2.1.0-beta.2; = 2.1.0-beta.3; = 2.1.0-beta.4; = 2.1.0-beta.5; = 2.1.0-beta.6; = 2.1.0-beta.7; = 2.1.0-beta.8; = 2.1.0-beta.9; = 2.1.0-beta.10; = 2.1.0-beta.11; = 2.1.0-beta.12; = 2.1.0-beta.13; = 2.1.0-beta.14; = 2.1.0-beta.15; = 2.1.0-beta.16; = 2.1.0-beta.17; = 2.1.0-beta.18; = 2.1.0-beta.19; = 2.1.0-beta.20; = 2.1.0-beta.21; = 2.1.0-beta.22; = 2.1.0-beta.23; = 2.1.0-beta.24; = 2.1.0-beta.25; = 2.1.0-beta.26; = 2.1.0-beta.27; = 2.1.0-beta.28; = 2.1.0-beta.29; = 2.1.0-beta.30; = 2.1.0-beta.31; = 2.1.0-beta.32; = 2.1.0-beta.33; = 2.1.0-beta.34; = 2.1.0-beta.35; = 2.1.0-beta.36; = 2.1.0-beta.37; = 2.1.0-beta.38; = 2.1.0-beta.39; = 2.1.0-beta.40; = 2.1.0-beta.41; = 2.1.0-beta.42; = 2.1.0-beta.43; = 2.1.0-beta.44; = 2.1.0-beta.45; = 2.1.0-beta.46; = 2.1.0-beta.47; = 2.1.0-beta.48; = 2.1.0-beta.49; = 2.1.0-beta.50; = 2.1.0-beta.51; = 2.1.0-beta.52; = 2.1.0-beta.53; = 2.1.0-beta.54; = 2.1.0-beta.55; = 2.1.0-beta.56; = 2.1.0-beta.57; = 2.1.0-beta.58; = 2.1.0-beta.59; = 2.1.0-beta.60; = 2.1.0-beta.61; = 2.1.0-beta.62; = 2.1.0-beta.63; = 2.1.0-beta.64—

What to do

Check the vendor advisory in the references below for fixed versions and workarounds.

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 neededNoneNo accountFrom the CVSS vector1.00
Victim interactionRoutineA normal action: open a file, visit a page, click a linkFrom the CVSS vector0.70
ConfigurationDefaultOut-of-the-box installs are vulnerableFrom the CVSS vector1.00
ReliabilityReliableDeterministic: injection, logic bug, path traversalFrom the CVSS vector1.00

Threat level T3: Public proof of concept (× 0.95)

A qualifying GitHub proof of concept, an unverified Exploit-DB entry, CISA's SSVC says PoC, or a reference tagged as an exploit

  • Reference tagged as exploit (link)
  • CISA SSVC: proof of concept

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

The arithmetic
  1. Prerequisites multiplied together0.700
  2. Threat T3: Public proof of concept0.950
  3. 10 × impact 0.3 × prerequisites 0.7 × threat 0.951.995
  4. Rounded to one decimal between 0.1 and 102.0

How the score works

Exploitation and evidence timeline

  1. 19 Oct 2026 Published
  2. 3 Dec 2026 Reference tagged as exploit first seen
  3. 3 Dec 2026 CISA SSVC: proof of concept first seen
  4. 3 Dec 2026 Risk 2.0 (cvss fallback)

Weakness

CWE-20, CWE-502

References

Get alerts for HanLP

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