{"id":"CVE-2026-81930","title":"Apache Airflow's Snowflake provider did not validate the connection's `account` and `region` fields before interpolating them into request URLs","summary":"Apache Airflow's Snowflake provider did not validate the connection's `account` and `region` fields before interpolating them into request URLs. The SQL API endpoint is built as `https://{account}.snowflakecomputing.com/api/v2/statements…","severity":"medium","cvss":6.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","cwe":["CWE-522"],"vendor":"apache","product":"apache-airflow-providers-snowflake","affected":["apache-airflow-providers-snowflake < 6.18.0"],"patched":["apache-airflow-providers-snowflake 6.18.0"],"published":"2026-09-29","updated":"2026-10-07","sourceUpdated":"2026-10-07T19:57:31.443","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-81930","references":[{"url":"https://github.com/apache/airflow/pull/72174","label":"security@apache.org"},{"url":"https://lists.apache.org/thread/324jm2mxd5x4nq85jfw1ostz94xwzrmk","label":"security@apache.org"},{"url":"http://www.openwall.com/lists/oss-security/2026/09/29/12","label":"af854a3a-2127-422b-91ae-364da2661108"}],"tags":["nvd","cve.org","osv","pip"],"epss":0.00432,"epssPercentile":0.3737,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-09-29T18:29:44.043559Z"},"ingestedAt":"2026-09-29T10:31:36.314Z","aliases":["PYSEC-2026-4188"],"ecosystem":"pip","slug":"CVE-2026-81930","body":"## Overview\n\nApache Airflow's Snowflake provider did not validate the connection's `account` and `region` fields before interpolating them into request URLs. The SQL API endpoint is built as `https://{account}.snowflakecomputing.com/api/v2/statements`, so an `account` value containing `/`, `?` or `#` demotes the intended domain to a path, query or fragment and leaves the attacker in control of the request host.\n\nThe provider sends that request with an `Authorization: Bearer` header carrying a JWT minted from the connection's private key, or the configured OAuth or programmatic access token. A user who can edit the Snowflake connection but cannot read its secrets — Airflow gives connection-configuration users write-only access to stored credentials, and a `private_key_file` lives on the worker rather than in the connection — can therefore cause a valid token for the account to be delivered to a host of their choosing and replay it against the genuine Snowflake endpoint. No Dag-authoring ability is required: the attacker edits the connection and waits for an existing Dag to use it. The same unvalidated value was also used to build the OAuth token-request URL and the Cortex Agent base URL.\n\nAffects deployments where Snowflake connections are editable by users who are not trusted with the connection's credentials. Users are advised to upgrade to `apache-airflow-providers-snowflake` `6.18.0` or later, which rejects `account` and `region` values containing anything other than letters, digits, `.`, `_` and `-` in every URL the provider builds from them.\n\n## Affected\n\n- `apache-airflow-providers-snowflake < 6.18.0`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `apache-airflow-providers-snowflake 6.18.0`\n\n## Package advisory (CVE-2026-81930)\n\nAffected packages:\n\n- `apache-airflow-providers-snowflake < 6.18.0`\n\nPatched in:\n\n- `apache-airflow-providers-snowflake 6.18.0`\n\nSource: https://osv.dev/vulnerability/PYSEC-2026-4188","depth":"sunlit","depthScore":35,"depthScoreParts":{"impact":34.7,"likelihood":0.1,"exploitation":0,"ransomware":0},"changes":[{"seq":213006,"id":"CVE-2026-81930","ts":1790711125347,"field":"cvss","old":null,"new":"6.3"},{"seq":213005,"id":"CVE-2026-81930","ts":1790711125347,"field":"severity","old":"none","new":"medium"}]}