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.
References7
- github.com/microsoft/o365-moodle/commit/01b2d4c2e13b06a66557527…
- github.com/microsoft/o365-moodle/commit/258872f6e2011f4efa8ebb7…
- github.com/microsoft/o365-moodle/commit/d5596655f0baaee0f11aec2…
- github.com/microsoft/o365-moodle/releases/tag/v20260423_m405
- github.com/microsoft/o365-moodle/releases/tag/v20260423_m500
- github.com/microsoft/o365-moodle/releases/tag/v20260423_m501
- github.com/microsoft/o365-moodle/security/advisories/GHSA-hqjh-…
Metrics
- CVSS 4.0
-
9.3
CRITICAL
Score source: CNA
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - EPSS — exploit probability
- 1% percentile: 60 · as of 15 November 2026
- CWE
- CWE-347
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.