---
id: CVE-2025-62425
title: >-
  MAS (Matrix Authentication Service) is a user management and authentication
  service for Matrix homeservers, written and maintained by Element
summary: >-
  MAS (Matrix Authentication Service) is a user management and authentication
  service for Matrix homeservers, written and maintained by Element. A logic
  flaw in matrix-authentication-service 0.20.0 through 1.4.0 allows an attacker
  with acc…
severity: high
cvss: 8.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H'
cwe:
  - CWE-620
published: '2025-10-16'
updated: '2026-10-09'
sourceUpdated: '2026-10-09T10:10:00.193'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-62425'
references:
  - url: >-
      https://github.com/element-hq/matrix-authentication-service/commit/bce99edb6177be11f8f38c1d01f5606ce7b4b2e5
    label: security-advisories@github.com
  - url: >-
      https://github.com/element-hq/matrix-authentication-service/security/advisories/GHSA-6wfp-jq3r-j9xh
    label: security-advisories@github.com
tags:
  - nvd
epss: 0.00448
epssPercentile: 0.36951
ingestedAt: '2026-10-09T12:53:29.100Z'
---

## Overview

MAS (Matrix Authentication Service) is a user management and authentication service for Matrix homeservers, written and maintained by Element. A logic flaw in matrix-authentication-service 0.20.0 through 1.4.0 allows an attacker with access to an authenticated MAS session to perform sensitive operations without entering the current password. These include changing the current password, adding or removing an e-mail address and deactivating the account. The vulnerability only affects instances which have the local password database feature enabled (passwords section in the config). Patched in matrix-authentication-service 1.4.1.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
