CVE-2025-51464: Aim Cross-Site Scripting Vulnerability
MODERATECVE-2025-51464 is a MODERATE cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Aim libraries in the PyPI ecosystem. The issue involves aim vulnerable to cross-site scripting. Remediation is available in the latest vendor maintenance releases.
CVE-2025-51464 at a Glance
How to Fix CVE-2025-51464
To remediate this vulnerability, upgrade all affected Aim dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install aim>=Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show aim
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2025-51464, inspect your installed packages using pip:
pip show aim
Analyze the terminal output to locate any version of Aim in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.
Note: The pip show aim command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Aim, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-51464 Affected Aim Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
aim
|
PyPI |
≤ 3.30.0.dev20250611
|
|
References
Frequently Asked Questions
What is CVE-2025-51464?
Which Aim versions are affected?
What version fixes CVE-2025-51464?
Is aim affected?
What CWE is associated with CVE-2025-51464?
How can I check PyPI dependencies for CVE-2025-51464?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-gmvv-rj92-9w35",
"modified" : "2025-07-22T20:48:43Z",
"published" : "2025-07-22T18:30:42Z",
"aliases" : [ "CVE-2025-51464" ],
"summary" : "Aim vulnerable to Cross-site Scripting",
"details" : "Cross-site Scripting (XSS) in aimhubio Aim 3.28.0 allows remote attackers to execute arbitrary JavaScript in victims browsers via malicious Python code submitted to the /api/reports endpoint, which is interpreted and executed by Pyodide when the report is viewed. No sanitisation or sandbox restrictions prevent JavaScript execution via pyodide.code.run_js().",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "aim"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "3.30.0.dev20250611"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-51464"
}, {
"type" : "WEB",
"url" : "https://github.com/aimhubio/aim/pull/3333"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/aimhubio/aim"
}, {
"type" : "WEB",
"url" : "https://www.gecko.security/blog/cve-2025-51464"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-22T20:48:43Z",
"nvd_published_at" : "2025-07-22T18:15:36Z"
}
}