Preliminary notice: published right away from the original source data, without editorial write-up. It will shortly be replaced by a written and reviewed version.
Summary
CVE-2026-133836: medium-severity vulnerability (CVSS 5.3) in hankcs HanLP.
What happened
Original description from the source: A vulnerability has been found in hankcs HanLP up to 2.1.6. The affected element is the function RNNLanguageModel.load_language_model of the file hanlp/layers/embeddings/contextual_string_embedding.py. Such manipulation of the argument model_file leads to deserialization. The attack may be performed from remote. The exploit has been disclosed to the public and may be used. Upgrading to version 2.1.7 is sufficient to fix this issue. The name of the patch is 6962907e37dfa467fa6dee164b5b1d0a904b24db. The affected component should be upgraded.
Why it matters
Medium severity, CVSS 5.3.
Affected products and versions
hankcs HanLP 2.1.0; hankcs HanLP 2.1.1; hankcs HanLP 2.1.2; hankcs HanLP 2.1.3; hankcs HanLP 2.1.4; hankcs HanLP 2.1.5; hankcs HanLP 2.1.6; hankcs HanLP 2.1.7 (fixed in 2.1.7)
| Product | Versions | Fixed in |
|---|---|---|
| hankcs HanLP | 2.1.0 | — |
| hankcs HanLP | 2.1.1 | — |
| hankcs HanLP | 2.1.2 | — |
| hankcs HanLP | 2.1.3 | — |
| hankcs HanLP | 2.1.4 | — |
| hankcs HanLP | 2.1.5 | — |
| hankcs HanLP | 2.1.6 | — |
| hankcs HanLP | 2.1.7 | 2.1.7 |
Action recommended by the source
Upgrade to a fixed version: 2.1.7.
Fixed in: 2.1.7
Sources and references
- https://vuldb.com/vuln/441459 — CVE Program
- https://vuldb.com/vuln/441459/cti — CVE Program
- https://vuldb.com/cve/CVE-2026-133836 — CVE Program
- https://vuldb.com/submit/1051822 — CVE Program
- https://gist.github.com/zewolkt3939/8f665b80c0878e5efde324c255d1abcd — CVE Program
- https://github.com/hankcs/HanLP/commit/6962907e37dfa467fa6dee164b5b1d0a904b24db — CVE Program
- https://github.com/hankcs/HanLP/ — CVE Program
Weaknesses (CWE): CWE-502, CWE-20
Relevant change history
Published
Preliminary advisory published.