CVE-2026-54733

moodle-local_o365: Authentication bypass via unverified JWT signature in Teams SSO endpoint

Published Jul 16, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
First Time appeared Microsoft
Microsoft o365-moodle
Vendors & Products Microsoft
Microsoft o365-moodle
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-347

    Improper Verification of Cryptographic Signature

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Jul 16, 2026, 3:35 PM
Reserved
Jun 15, 2026, 11:07 PM
Status
Awaiting Analysis
Published
Jul 16, 2026, 4:19 PM
Modified
Oct 24, 2026, 8:10 PM