The minimalistic document archiving platform.
fix(auth): revoke on password reset (#1406)
Corentin Thomassetd178643ea399
diff --git a/.changeset/tricky-regions-appear.md b/.changeset/tricky-regions-appear.mdnew file mode 100644index 00000000..c4cbb969--- /dev/null+++ b/.changeset/tricky-regions-appear.md@@ -0,0 +1,7 @@+---+'@papra/app': patch+---++Security fix: revoke all user sessions on password reset.++Thank you to [MMartinez](https://github.com/murillomr) for the responsible disclosure of this issue.diff --git a/apps/papra-server/src/modules/app/auth/auth.services.ts b/apps/papra-server/src/modules/app/auth/auth.services.tsindex b9ea7920..f8b375e6 100644--- a/apps/papra-server/src/modules/app/auth/auth.services.ts+++ b/apps/papra-server/src/modules/app/auth/auth.services.ts@@ -45,6 +45,7 @@ export function getAuth({},emailAndPassword: {enabled: config.auth.providers.email.isEnabled,+ revokeSessionsOnPasswordReset: true,requireEmailVerification: config.auth.isEmailVerificationRequired,sendResetPassword: config.auth.isPasswordResetEnabled? authEmailsServices.sendPasswordResetEmail