# GHSA-5FXV-5QC2-53G8: Malicious code in doctreelstm (PyPI)

- Database: GitHub
- Malicious package: yes
- Published: 2026-10-31
- Modified: 2026-11-12

## Affected versions

- doctreelstm (PyPI): 1.0.0
- doctreelstm (PyPI): 10.0.0

## Description

## Source: kam193 (9609b278449fb9d196f4929f422f22288aa202df7b8417d91053ab0180711bb8)
Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.


---

Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.


Campaign: GENERIC-standard-pypi-install-pentest


Reasons (based on the campaign):


 - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.


 - The package overrides the install command in setup.py to execute malicious code during installation.

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/f949d2cef0ed2750153c43b44f46e50e1f26a19f/osv/malicious/pypi/doctreelstm/MAL-2026-18430.json))

## References

- https://bad-packages.kam193.eu/pypi/package/doctreelstm
- https://github.com/ossf/malicious-packages/blob/f949d2cef0ed2750153c43b44f46e50e1f26a19f/osv/malicious/pypi/doctreelstm/MAL-2026-18430.json
- https://github.com/ossf/malicious-packages/blob/1b2f57bc8c5af82aae1f82ac9cb07c91a2c3249c/osv/malicious/pypi/doctreelstm/MAL-2026-18430.json
- https://pypi.org/project/doctreelstm/1.0.0
- https://pypi.org/project/doctreelstm/10.0.0
- https://github.com/advisories/GHSA-5fxv-5qc2-53g8

Page: https://cve.now/GHSA-5FXV-5QC2-53G8

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
