docarray prototype pollution
A vulnerability was found in docarray up to 0.40.1. It has been rated as critical. Affected by this issue is the function getitem of the file /docarray/data/torch_dataset.py of the component Web API. The manipulation leads to improperly controlled modification of object prototype attributes ('prototype pollution'). The attack may be launched remotely. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | docarray | <= 0.40.1 | no fix |
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-5150
- https://gist.github.com/superboy-zjc/56502343bcb12eb653081b426debf2c8
- https://github.com/docarray/docarray
- https://vuldb.com/?ctiid.310238
- https://vuldb.com/?id.310238
- https://vuldb.com/?submit.574696
- https://pypi.org/project/docarray
- https://github.com/advisories/GHSA-j9wp-865g-rf48
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L- Weakness (CWE)
CWE-1321, CWE-94- Platform
- Python (PyPI)
- Package
docarray- Disclosed
- 25.05.2025
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1308 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-j9wp-865g-rf48 - CC BY 4.0
Vulnerability history: docarray
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.