---
id: CVE-2025-5150
aliases:
  - GHSA-j9wp-865g-rf48
  - PYSEC-2026-1308
title: docarray prototype pollution
summary: docarray prototype pollution
severity: medium
cvss: 6.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
vendor: docarray
product: docarray
ecosystem: pip
affected:
  - docarray <= 0.40.1
published: '2025-05-25'
updated: '2026-07-07'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-j9wp-865g-rf48'
references:
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2025-5150'
  - url: 'https://gist.github.com/superboy-zjc/56502343bcb12eb653081b426debf2c8'
  - url: 'https://github.com/docarray/docarray'
  - url: 'https://vuldb.com/?ctiid.310238'
  - url: 'https://vuldb.com/?id.310238'
  - url: 'https://vuldb.com/?submit.574696'
tags:
  - osv
  - pip
epss: 0.00668
epssPercentile: 0.49803
ingestedAt: '2026-07-08T18:25:50.641Z'
---

## Overview

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 packages

- `docarray <= 0.40.1`

## Remediation

Refer to the advisory for the patched release.
