Jan 18, 2026·5 min read·94 visits
Apache Airflow's built-in secrets masker missed the `proxy` and `proxies` keywords. If you configured a connection to route through an authenticated proxy (e.g., `http://user:pass@proxy:8080`), Airflow treated that URL as harmless metadata. Consequently, task logs—often visible to a wide range of users—would print the full URL, including the password, in plain text. Fix involves upgrading to 3.1.6+.
Apache Airflow versions prior to 3.1.6 failed to mask sensitive credentials embedded within proxy URLs in connection configurations, leading to clear-text password exposure in execution logs.
In the world of DevOps and Data Engineering, logs are the holy grail. They are the first place you look when a pipeline creates a crater instead of a data lake. Apache Airflow, the industry standard for orchestration, is notoriously chatty. It logs everything from task starts to XCom pushes, often giving developers a warm fuzzy feeling that they can debug anything.
But there is a dark side to verbosity. When a system blindly logs configuration objects to help you debug, it relies heavily on heuristics to decide what not to print. Airflow uses a SecretsMasker—a digital censor bar that scans for words like password, secret, or api_key and replaces their values with ***.
CVE-2025-68675 is the story of what happens when that censor bar gets a little too relaxed. It turns out, developers often route traffic through proxies, and those proxies often need authentication. Airflow didn't consider the word "proxy" to be dangerous, effectively treating http://admin:SuperSecret@myproxy.local the same as http://google.com. The result? Your proxy credentials ending up in the task logs, readable by anyone with 'Viewer' access.
The root cause here is a classic failure of enumeration. Airflow's security model for logging relies on a default list of sensitive keys. When a Connection object is dumped to a log (which happens frequently during debugging or connection testing), the mask_secret utility iterates through the fields.
If the field name matches a pattern in the sensitive list (e.g., password, auth, token), the value is scrubbed. This is a "blacklist" approach to sanitation—you have to know exactly what is bad to stop it. If you encounter a field name you haven't anticipated, it gets a free pass.
Prior to version 3.1.6, proxies and proxy were not on the list. This is particularly dangerous because the standard format for HTTP proxy configuration in Python requests (and many other libraries) involves embedding the credentials directly in the Authority part of the URI: scheme://user:password@host:port. By failing to flag the key proxy as sensitive, Airflow allowed the entire string—credentials and all—to bypass the filter and land in the plaintext logs.
The fix was embarrassingly simple, which highlights just how fragile keyword-based masking can be. The remediation involved updating the default configuration of the secrets masker to include the missing terms.
Here is a conceptual look at what happened in the code. The DEFAULT_SENSITIVE_FIELDS set defines what gets redacted:
# BEFORE (Vulnerable)
DEFAULT_SENSITIVE_FIELDS = {
'password',
'secret',
'passwd',
'authorization',
'api_key',
'apikey',
'access_token',
}
# AFTER (Fixed in 3.1.6)
DEFAULT_SENSITIVE_FIELDS = {
'password',
'secret',
'passwd',
'authorization',
'api_key',
'apikey',
'access_token',
# The new additions that save the day:
'proxy',
'proxies',
}By simply adding these two strings, any dictionary key or object attribute named proxy or proxies now triggers the masker. The value http://user:pass@1.2.3.4 gets transformed into *** in the logs, preventing the leak.
Exploiting this doesn't require buffer overflows or heap spraying. It requires a valid account with minimal permissions (like Viewer role) and a bit of patience. The attack vector is strictly internal, relying on an authorized user or developer creating a connection that uses a proxy.
Step 1: The Setup An admin configures a new HTTP Connection in Airflow to talk to an external API. Because the enterprise network is strict, they must route through an authenticated squid proxy.
{
"conn_id": "secure_api",
"conn_type": "http",
"host": "api.vendor.com",
"extra": {
"proxies": {
"http": "http://svc_airflow:Hunter2!@10.0.0.5:3128",
"https": "http://svc_airflow:Hunter2!@10.0.0.5:3128"
}
}
}Step 2: The Trigger
A DAG runs using this connection. If the DAG has logging enabled for connection details (common in debug mode) or if an error occurs that dumps the connection context, the proxies dictionary is printed to stdout.
Step 3: The Harvest
The attacker logs into the Airflow UI, browses to the Grid View, clicks on the task instance, and hits "Logs". There, staring them in the face, is:
[INFO] Using connection parameters: ... 'proxies': {'http': 'http://svc_airflow:Hunter2!@10.0.0.5:3128'} ...
The attacker now has valid credentials for the internal proxy, which is often a gateway to the wider internal network.
While this is a CVSS 7.5 (High), the real-world impact depends heavily on your network architecture. If your proxies utilize a generic, low-privilege account, this is annoying but manageable. However, if—like many organizations—you reuse service accounts, this could be catastrophic.
The credentials leaked here (svc_airflow in our example) might effectively be a master key for network egress. An attacker who has compromised a low-level user account on the Airflow web interface can upgrade their access to network-level pivoting. They can use these credentials to route malicious traffic through your corporate proxy, potentially bypassing firewall rules that trust the proxy IP, or access other internal services that assume traffic coming from the proxy is legitimate.
The primary mitigation is straightforward: Upgrade to Apache Airflow 3.1.6. This version patches the SecretsMasker to respect proxy fields.
If you cannot upgrade immediately, you have two options:
airflow.cfg to add proxy and proxies to the sensitive_var_conn_names configuration. This forces the masker to pick them up without a code change.CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N| Product | Affected Versions | Fixed Version |
|---|---|---|
Apache Airflow Apache | < 3.1.6 | 3.1.6 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-532 |
| CVSS v3.1 | 7.5 (High) |
| Attack Vector | Network |
| Attack Complexity | Low |
| Privileges Required | None (to trigger), Low (to view logs) |
| EPSS Score | 0.00063 (Low) |
| Exploit Status | No Known Exploitation |
Insertion of Sensitive Information into Log File
Gradle versions prior to 8.14.4 and 9.3.0 fail to classify certain fatal network transport exceptions, such as UnknownHostException and NoHttpResponseException, as critical failures during dependency resolution. When these exceptions occur and retry thresholds are exhausted, Gradle fails to disable the unreachable primary repository and instead falls through to subsequent repositories configured in the build script. An attacker capable of disrupting connectivity to an upstream repository can force the build tool to fetch malicious artifacts with matching coordinates from a downstream, untrusted repository.
NATS Server prior to versions 2.12.8 and 2.14.3 contains an incorrect authorization vulnerability (CWE-863) in its message tracing subsystem. When evaluating whether a connection is permitted to publish trace events to a destination subject specified in the Nats-Trace-Dest header, the server only checks standard client permissions and omits permission checks for leaf node connections. This allows a connected leaf node operator with restricted publishing privileges to emit internal trace events to unauthorized subjects and suppress standard message delivery using the Nats-Trace-Only header.
CVE-2026-63341 is a high-severity Denial of Service (DoS) vulnerability in the Aedes MQTT broker for Node.js affecting all versions prior to 1.1.1. The flaw stems from missing input validation on the hierarchical depth of incoming MQTT topic strings before they are passed to the underlying topic-matching engine, qlobber. Because qlobber enforces a hardcoded limit of 100 topic levels and throws a synchronous exception when this threshold is exceeded, an attacker can send a single MQTT packet containing 101 or more forward-slash-separated levels to trigger an uncaught exception that immediately terminates the Node.js broker process.
CVE-2026-61725 is a path traversal vulnerability (CWE-22) in the sevenz-rust2 Cargo package prior to version 0.21.1. The vulnerability occurs because the decompression utility fails to validate or sanitize archive entry filenames before joining them with the destination directory path via std::path::Path::join. An attacker who supplies a crafted 7z archive containing parent directory traversal sequences or absolute paths can write or overwrite arbitrary files on the host filesystem with the privileges of the extracting process.
CVE-2026-77309 (GHSA-jrjx-9jjw-747m) is a high-severity unauthenticated remote code execution vulnerability affecting NASA-AMMOS AIT-GUI versions 1.0.0 through 2.5.0. The flaw results from chaining an incomplete file cleanup error in the telemetry query endpoint (/tlm/query) with a directory traversal flaw in the script execution endpoint (/script/run). An attacker on an adjacent network can stage arbitrary Python statements into a static file on disk and execute that file under the privileges of the AIT-GUI web server process.
A vulnerability classified under CWE-116 (Improper Encoding or Escaping of Output) exists in memtomem-stm versions 0.1.0 through 0.1.33. The software acts as a Model Context Protocol (MCP) short-term memory proxy gateway for AI agent architectures. When surfacing retrieved memories and scratchpad items into downstream Large Language Model (LLM) context envelopes, the SurfacingFormatter component fails to properly sanitize untrusted memory attributes. An attacker with the ability to plant untrusted content into the agent's long-term or working memory store can inject arbitrary structural delimiters, close the <surfaced-memories> XML boundary prematurely, visually obscure instructions using Unicode bidirectional overrides, and execute stored prompt injection attacks against downstream LLM agents.