Matrix Authentication Service account password can be changed using an authenticated session without supplying the current password
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-62425
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 09:41 UTC · Revision 1
Source evidence
Matrix Authentication Service account password can be changed using an authenticated session without supplying the current password
core-osv · Original sourcePublished 16 Oct 2025, 18:44 UTC
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.
osv:CVE-2025-62425
Complete source record
{
"id": "49a4fd0fadd73f9ae8b0d691e41e0c04f82cda5552301cb38051f2ec8e575ac7",
"url": "https://osv.dev/vulnerability/CVE-2025-62425",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Matrix Authentication Service account password can be changed using an authenticated session without supplying the current password",
"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 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.",
"evidence": "osv:CVE-2025-62425",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2025-62425",
"aliases": [
"CVE-2025-62425",
"GHSA-6wfp-jq3r-j9xh"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/element-hq/matrix-authentication-service",
"type": "GIT",
"events": [
{
"introduced": "9423306841c34d200324a3225a01f01e368d28bb"
},
{
"fixed": "bce99edb6177be11f8f38c1d01f5606ce7b4b2e5"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"introduced": "0.20.0"
},
{
"last_affected": "1.4.0"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StringRangeExpression"
},
{
"range": [
{
"fixed": "bce99edb6177be11f8f38c1d01f5606ce7b4b2e5"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62425.json"
}
}
],
"modified": "2026-10-28T02:30:27.917537872Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62425.json",
"https://github.com/element-hq/matrix-authentication-service/security/advisories/GHSA-6wfp-jq3r-j9xh",
"https://nvd.nist.gov/vuln/detail/CVE-2025-62425",
"https://github.com/element-hq/matrix-authentication-service/commit/bce99edb6177be11f8f38c1d01f5606ce7b4b2e5"
],
"provider_metadata": {
"cwe_ids": [
"CWE-620"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/62xxx/CVE-2025-62425.json"
}
},
"related_cves": [
{
"value": "CVE-2025-62425",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 494273,
"published_at": "2025-10-16T18:44:02.616+00:00"
}