CVE-2026-11820: Community.general: community.general nexmo — api credentials exposed in get url query string[security] community.general nexmo — api credentials exposed in get url query string
A flaw was found in the community.general Ansible collection's nexmo module. The module constructs HTTP requests to the Vonage/Nexmo SMS API by encoding API credentials (apikey and apisecret) into URL query parameters and sending them via GET requests. This causes credentials to be exposed in web server access logs, proxy logs, HTTP Referer headers, and network monitoring tools, despite the Ansible argument specification marking these parameters as nolog. An attacker with access to any of these logging or monitoring points can obtain the full API credentials and gain unauthorized access to the victim's Vonage/Nexmo account.
Other sources
apikey and apisecret are declared nolog=True at the input level, but both credentials are immediately URL-encoded into a GET request as query parameters, bypassing all nolog protection
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Switch the nexmo module implementation from building a GET request URL that includes query parameters for api_key/api_secret (e.g., constructing url = f"{NEXMO_API}?{urlencode(msg)}") to using POST with Content-Type: application/x-www-form-urlencoded and sending credentials in the request body (e.g., fetch_url(..., NEXMO_API, data=data, method="POST", headers={"Content-Type": "application/x-www-form-urlencoded"}).
community.general Ansible collection (plugins/modules/nexmo.py) nexmo module HTTP method for Vonage/Nexmo SMS API call (GET vs POST) = POST
Event History
Frequently Asked Questions
What is the severity of CVE-2026-11820?
The severity of CVE-2026-11820 is rated as medium with a score of 6.5.
What issue does CVE-2026-11820 describe?
CVE-2026-11820 describes a vulnerability where API credentials are exposed in the URL query string, bypassing no_log protection.
How do I fix CVE-2026-11820?
To fix CVE-2026-11820, avoid exposing API credentials in query parameters and ensure they are handled securely.
What software is affected by CVE-2026-11820?
The vulnerability CVE-2026-11820 affects the Ansible community.general module specifically in nexmo.py.
What are the potential risks of CVE-2026-11820?
The potential risks of CVE-2026-11820 include unauthorized access to sensitive API credentials leading to data exposure.