CVE-2025-51464: Aim Package Vulnerable to Cross-site Scripting (XSS)
Summary
CVE-2025-51464: Aim vulnerable to Cross-site Scripting. Affects aim versions < 3.30.0.dev20250611. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
Aim is an open-source Python package available on PyPI, designed for managing and analyzing data reports. It provides users with tools to create, view, and manipulate reports efficiently. However, the package has a vulnerability that allows for Cross-site Scripting (XSS), which can be exploited by attackers to execute arbitrary JavaScript in users' browsers.
Vulnerability Detail
The vulnerability arises from a lack of sanitization and sandbox restrictions in the Aim package version 3.28.0. Attackers can submit malicious Python code to the /api/reports endpoint, which is then interpreted and executed by Pyodide when the report is viewed. This allows for the execution of arbitrary JavaScript in the victim's browser, potentially leading to data theft, session hijacking, or other malicious activities.
How To Fix
No fixed version is published for this vulnerability.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a temporary workaround, avoid using the /api/reports endpoint until the package is updated. Additionally, consider implementing input validation and sanitization on the server-side to mitigate the risk of XSS attacks.
Conclusion
The Aim package is vulnerable to Cross-site Scripting (XSS), which can be exploited by attackers to execute malicious JavaScript in users' browsers. It is crucial to update to a patched version of the package to mitigate this risk. For immediate checks on your application's vulnerability status, consider using Vulert.
See every vulnerability recorded for aim →
FAQ
Cross-site Scripting (XSS) is a security vulnerability that allows attackers to inject malicious scripts into web pages viewed by other users.
If exploited, this vulnerability can allow attackers to execute arbitrary JavaScript in users' browsers, leading to potential data theft or unauthorized actions.
Aim versions from 3.28.0 up to 3.30.0.dev20250611 are affected by this vulnerability.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.
If you cannot update the package, avoid using the vulnerable endpoint and implement additional security measures to validate and sanitize inputs.
Related vulnerabilities
Recent vulnerabilities recorded for aim.