Sentencepiece has a a heap overflow issue
Invalid memory access in Sentencepiece versions less than 0.2.1 when using a vulnerable model file, which is not created in the normal training procedure.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | sentencepiece | < 0.2.1 | 0.2.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-1260
- https://github.com/google/sentencepiece/commit/d856b67fdb3492e035489abf9b3aaf486144b2c0
- https://github.com/google/sentencepiece
- https://github.com/google/sentencepiece/releases/tag/v0.2.1
- https://pypi.org/project/sentencepiece
- https://github.com/advisories/GHSA-38vq-g6vr-w8wf
- CVSS vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N- Weakness (CWE)
CWE-119- Platform
- Python (PyPI)
- Package
sentencepiece- Disclosed
- 22.01.2026
- Updated
- 11.10.2026 15:17
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1909 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-38vq-g6vr-w8wf - CC BY 4.0
Vulnerability history: sentencepiece
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.