CVE-2021-45229: Apache Airflow Cross-site Scripting Vulnerability
6.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.88892%
CWE
Published
2/26/2022
Updated
9/12/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
apache-airflow | pip | >= 0, < 2.2.4rc1 | 2.2.4rc1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from unsafe handling of the 'origin' parameter in the 'airflow/www/templates/airflow/trigger.html' template, not from a specific function
. The pre-patch code injected the 'origin' value directly into a JavaScript context (onclick handler) without proper escaping. The fix replaced the JavaScript-based button with an HTML anchor tag, leveraging template auto-escaping. No backend functions
were explicitly modified in the provided patch, and the primary issue was in template rendering logic rather than a discrete function
.