CVE-2026-133836: hankcs HanLP contextual_string_embedding.py RNNLanguageModel.load_language_model deserialization

Published Nov 20, 2026
·
Updated

A vulnerability has been found in hankcs HanLP up to 2.1.6. The affected element is the function RNNLanguageModel.loadlanguagemodel of the file hanlp/layers/embeddings/contextualstringembedding.py. Such manipulation of the argument modelfile 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.

Affected Software

1 affected component
pypi/hanlp<=2.1.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 2.1.7

Event History

Nov 20, 2026
CVE Published
via MITRE·09:30 PM
Data Sourced
via MITRE·09:30 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·10:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which HanLP versions need to be upgraded?

HanLP versions up to and including 2.1.6 are affected. Upgrade to version 2.1.7 or later; the fix is identified by patch 6962907e37dfa467fa6dee164b5b1d0a904b24db.

2

What access does an attacker need to exploit this issue?

An attacker needs the ability to manipulate the model_file argument passed to RNNLanguageModel.load_language_model. The attack can be performed remotely, and no user interaction is indicated.

3

Is public exploit information available?

Yes. The exploit has been publicly disclosed and may be used.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203