# All-in-One Microsoft 365 & Entra ID / Azure AD SSO Login <= 2.2.8 - Authenticated (Subscriber+) Microsoft Graph Request Injection via 'doc_path' and 'query_text' Parameters

- **ID:** WPSEC-2026-1952
- **Plugin:** All-in-One Microsoft 365 & Entra ID / Azure AD SSO Login (`login-with-azure`), https://wordpress.org/plugins/login-with-azure/
- **Affected versions:** all versions before 2.2.9
- **Fixed in:** 2.2.9 (Update to 2.2.9 or later.)
- **Severity:** Medium 6.5 (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N)
- **Weakness:** CWE-74
- **Usage among sites WPSec scans:** plugin Low, affected versions Low (as of 2026-10-29)
- **Attack surface analysis:** https://attacksurface.wpsec.com/plugin/login-with-azure
- **Fix released:** 2026-10-28
- **Published:** 2026-10-29
- **URL:** https://wpsec.com/vuln/WPSEC-2026-1952/

## Description

The All-in-One Microsoft 365 & Entra ID / Azure AD SSO Login plugin for WordPress is vulnerable to Microsoft Graph request injection via the 'doc_path' and 'query_text' parameters of the get-docs-by-path and find-items REST endpoints in all versions up to, and including, 2.2.8. This is due to insufficient validation of these values before they are inserted into the Microsoft Graph request URL: the path is used as the whole Graph resource path, and '?', '&' and '#' were not rejected. The endpoints are open to any logged-in user who has a REST nonce. This makes it possible for authenticated attackers, with Subscriber-level access and above, to make the site send arbitrary Graph GET requests with its stored SharePoint token and read the responses. This can include resources outside SharePoint that the token's scopes allow, such as the connected account's mail.

## References

- https://wpsec.com/vuln/WPSEC-2026-1952/
- https://plugins.svn.wordpress.org/login-with-azure/tags/2.2.9/
- https://wordpress.org/plugins/login-with-azure/

Source: WPSec, https://wpsec.com/vuln/WPSEC-2026-1952/

License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Free to use, share and adapt, also commercially, if you credit WPSec and link to this advisory.
