Description
The Microsoft 365 and Microsoft Entra ID Plugins for Moodle provide Office 365 and Azure Active Directory integration for Moodle. Prior to 4.5.6, 5.0.5, and 5.1.1, the Microsoft Office 365 Integration plugin local_o365 Teams SSO endpoint sso_login.php base64-decodes a JWT payload and authenticates users from the upn claim without verifying the JWT signature, allowing an unauthenticated attacker to forge a token and obtain a Moodle session as an O365-authenticated user. This issue is fixed in versions 4.5.6, 5.0.5, and 5.1.1.
Published: 2026-07-16
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Microsoft 365 and Microsoft Entra ID integration plugin for Moodle contains a flaw in the Teams SSO login endpoint that decodes a JWT payload and trusts the UPN claim without verifying the token’s signature. An unauthenticated attacker can forge a signed‑by‑no‑one token, making the Moodle session as if the user had authenticated through Office 365. This flaw permits remote impersonation of any user in the integrated domain and undermines the integrity of authenticated sessions.

Affected Systems

Any Moodle installation that uses the Microsoft 365 integration plug‑in "local_o365" at a version earlier than 4.5.6, 5.0.5, or 5.1.1 is vulnerable. These are the vulnerable releases documented by Microsoft in the plugin’s release notes and security advisories. The plugin provides Office 365 and Azure Active Directory integration for Moodle and is maintained by Microsoft.

Risk and Exploitability

The CVSS base score of 9.3 classifies this issue as critical, reflecting a remote authentication bypass that could allow full access to the Moodle site. The EPSS score is < 1%, indicating a low but non‑zero probability of exploitation, yet the absence of JWT signature verification makes exploitation trivial for an attacker who can craft a token. The vulnerability is not listed in the CISA KEV catalog, indicating no publicly known widespread exploitation at the time of this advisory. An attacker could target the Teams SSO endpoint with a forged token, which the vulnerable system will accept and use to create a session for the claimed user, thereby enabling potential data theft, credential misuse, and lateral movement within the Moodle environment.

Generated by OpenCVE AI on August 3, 2026 at 02:56 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Microsoft 365 integration plug‑in to version 4.5.6, 5.0.5, or 5.1.1, which contain the proper JWT signature verification fix.
  • Disable the Teams SSO endpoint in the Moodle configuration until the plugin has been upgraded to a fixed version to prevent unauthenticated token usage.
  • Restrict access to the Teams SSO endpoint by applying network‑level controls such as firewall rules or IP whitelisting to limit requests to trusted networks until the vulnerability is patched.

Generated by OpenCVE AI on August 3, 2026 at 02:56 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Microsoft
Microsoft o365-moodle
Vendors & Products Microsoft
Microsoft o365-moodle

Thu, 16 Jul 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 16 Jul 2026 15:30:00 +0000

Type Values Removed Values Added
Description The Microsoft 365 and Microsoft Entra ID Plugins for Moodle provide Office 365 and Azure Active Directory integration for Moodle. Prior to 4.5.6, 5.0.5, and 5.1.1, the Microsoft Office 365 Integration plugin local_o365 Teams SSO endpoint sso_login.php base64-decodes a JWT payload and authenticates users from the upn claim without verifying the JWT signature, allowing an unauthenticated attacker to forge a token and obtain a Moodle session as an O365-authenticated user. This issue is fixed in versions 4.5.6, 5.0.5, and 5.1.1.
Title moodle-local_o365: Authentication bypass via unverified JWT signature in Teams SSO endpoint
Weaknesses CWE-347
References
Metrics cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Microsoft O365-moodle
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-16T15:35:02.951Z

Reserved: 2026-06-15T23:07:33.232Z

Link: CVE-2026-54733

cve-icon Vulnrichment

Updated: 2026-07-16T15:34:58.532Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-03T03:00:04Z

Weaknesses
  • CWE-347

    Improper Verification of Cryptographic Signature