fix: harden the plugin runtime after the 2.9.0 security review

This commit is contained in:
LukeGus committed 2026-09-25 08:48:54 -05:00
1 parent 2961297989
commit c6a44b7ff3
69 files changed
+4613 -312

No files matched your search

+3
View File
@@ -105,6 +105,9 @@ export async function evaluateSecondFactors(
try {
if (await factor.isEnrolled(userId)) required.set(key, factor);
} catch (error) {
// Unknown is not "not enrolled": the login stops instead of skipping
// a factor the user may well have.
blocked.push({ pluginId: factor.pluginId, factorId: factor.id });
authLogger.warn("Second factor enrolment check failed", {
operation: "second_factor_enrolment_check",
factorId: factor.id,