CVE-2025-5150: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in docarray
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.
AI Analysis
Technical Summary
CVE-2025-5150 is a medium-severity vulnerability affecting the docarray library versions up to 0.40.1. The vulnerability resides in the __getitem__ function within the /docarray/data/torch_dataset.py file, part of the Web API component. It allows an attacker to perform prototype pollution, a type of attack where the attacker manipulates the prototype of a base object, leading to unintended behavior in the application. Prototype pollution can cause modification of object properties that are inherited by all instances, potentially leading to data corruption, denial of service, or even remote code execution depending on the application context. This vulnerability can be exploited remotely without authentication or user interaction, increasing its risk profile. The CVSS 4.0 vector indicates network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:L), no user interaction (UI:N), and low impact on confidentiality, integrity, and availability (VC:L, VI:L, VA:L). The vendor has not responded to the disclosure, and no patches are currently available. Although no known exploits are reported in the wild, the public disclosure of the exploit code increases the risk of exploitation. The docarray library is used primarily in machine learning and data processing pipelines, often integrated into web APIs and services that handle complex data structures, making prototype pollution particularly dangerous as it can disrupt data integrity and application logic.
Potential Impact
For European organizations utilizing docarray in their machine learning or data processing workflows, this vulnerability poses a risk of unauthorized modification of application behavior, potentially leading to data corruption or denial of service. Since the vulnerability can be exploited remotely without authentication, exposed web APIs using vulnerable docarray versions are at risk of compromise. This could disrupt critical AI-driven services, affect data integrity, and undermine trust in automated decision-making systems. Organizations in sectors such as finance, healthcare, and critical infrastructure, where AI and data processing are integral, may face operational disruptions or regulatory compliance issues if data integrity is compromised. The medium CVSS score reflects moderate impact, but the lack of vendor response and patches increases the urgency for European entities to assess their exposure and implement mitigations proactively.
Mitigation Recommendations
European organizations should immediately audit their environments to identify any usage of docarray versions 0.40.0 or 0.40.1, especially within web-facing APIs. Until an official patch is released, organizations should consider the following mitigations: 1) Implement strict input validation and sanitization on all data entering the __getitem__ function or related API endpoints to prevent malicious prototype pollution payloads. 2) Employ runtime application self-protection (RASP) or web application firewalls (WAF) with custom rules to detect and block suspicious prototype pollution attack patterns. 3) Isolate services using docarray in segmented network zones to limit potential lateral movement in case of exploitation. 4) Monitor logs and application behavior for anomalies indicative of prototype pollution attacks, such as unexpected object property changes or application crashes. 5) Engage with the open-source community or maintainers to track patch releases and apply updates promptly once available. 6) Consider temporary replacement or removal of docarray components in critical systems if feasible until a fix is provided.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Finland
CVE-2025-5150: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution') in docarray
Description
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.
AI-Powered Analysis
Technical Analysis
CVE-2025-5150 is a medium-severity vulnerability affecting the docarray library versions up to 0.40.1. The vulnerability resides in the __getitem__ function within the /docarray/data/torch_dataset.py file, part of the Web API component. It allows an attacker to perform prototype pollution, a type of attack where the attacker manipulates the prototype of a base object, leading to unintended behavior in the application. Prototype pollution can cause modification of object properties that are inherited by all instances, potentially leading to data corruption, denial of service, or even remote code execution depending on the application context. This vulnerability can be exploited remotely without authentication or user interaction, increasing its risk profile. The CVSS 4.0 vector indicates network attack vector (AV:N), low attack complexity (AC:L), no privileges required (PR:L), no user interaction (UI:N), and low impact on confidentiality, integrity, and availability (VC:L, VI:L, VA:L). The vendor has not responded to the disclosure, and no patches are currently available. Although no known exploits are reported in the wild, the public disclosure of the exploit code increases the risk of exploitation. The docarray library is used primarily in machine learning and data processing pipelines, often integrated into web APIs and services that handle complex data structures, making prototype pollution particularly dangerous as it can disrupt data integrity and application logic.
Potential Impact
For European organizations utilizing docarray in their machine learning or data processing workflows, this vulnerability poses a risk of unauthorized modification of application behavior, potentially leading to data corruption or denial of service. Since the vulnerability can be exploited remotely without authentication, exposed web APIs using vulnerable docarray versions are at risk of compromise. This could disrupt critical AI-driven services, affect data integrity, and undermine trust in automated decision-making systems. Organizations in sectors such as finance, healthcare, and critical infrastructure, where AI and data processing are integral, may face operational disruptions or regulatory compliance issues if data integrity is compromised. The medium CVSS score reflects moderate impact, but the lack of vendor response and patches increases the urgency for European entities to assess their exposure and implement mitigations proactively.
Mitigation Recommendations
European organizations should immediately audit their environments to identify any usage of docarray versions 0.40.0 or 0.40.1, especially within web-facing APIs. Until an official patch is released, organizations should consider the following mitigations: 1) Implement strict input validation and sanitization on all data entering the __getitem__ function or related API endpoints to prevent malicious prototype pollution payloads. 2) Employ runtime application self-protection (RASP) or web application firewalls (WAF) with custom rules to detect and block suspicious prototype pollution attack patterns. 3) Isolate services using docarray in segmented network zones to limit potential lateral movement in case of exploitation. 4) Monitor logs and application behavior for anomalies indicative of prototype pollution attacks, such as unexpected object property changes or application crashes. 5) Engage with the open-source community or maintainers to track patch releases and apply updates promptly once available. 6) Consider temporary replacement or removal of docarray components in critical systems if feasible until a fix is provided.
Affected Countries
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- VulDB
- Date Reserved
- 2025-05-24T17:35:59.271Z
- Cisa Enriched
- false
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 683332320acd01a249281766
Added to database: 5/25/2025, 3:07:30 PM
Last enriched: 7/9/2025, 1:27:35 PM
Last updated: 11/22/2025, 6:32:31 AM
Views: 29
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-11186: CWE-79 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in humanityco Cookie Notice & Compliance for GDPR / CCPA
MediumCVE-2025-2609: CWE-79 Improper Neutralization of Input During Web Page Generation (XSS or 'Cross-site Scripting') in MagnusSolution MagnusBilling
HighCVE-2024-9643: CWE-489 Active Debug Code in Four-Faith F3x36
CriticalCVE-2025-65947: CWE-400: Uncontrolled Resource Consumption in jzeuzs thread-amount
HighCVE-2025-65946: CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection') in RooCodeInc Roo-Code
HighActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.