Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Public unauthenticated network endpoint, no complexity or interaction, read-only file disclosure with no integrity or availability impact.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
8DescriptionCVE.org
Path Traversal in avatar attachments in Docmost v0.21.0 allows an unauthenticated malicious actor to disclose local files via a POST Request in a public url.
AnalysisAI
Unauthenticated path traversal in Docmost v0.21.0's avatar attachment endpoint allows remote attackers to read arbitrary local files from the server by embedding directory traversal sequences in a POST request to a publicly accessible URL. The flaw exists in the attachment controller (attachment.controller.ts:345) and requires no authentication, making every internet-exposed Docmost v0.21.0 instance vulnerable to local file disclosure. A public advisory with technical details is available from Artresilia; SSVC classifies exploitation as automatable, further elevating practical risk despite a low EPSS of 0.15%.
Technical ContextAI
Docmost is an open-source, self-hosted collaborative documentation and wiki platform. The vulnerability is rooted in CWE-22 (Path Traversal): the avatar attachment upload endpoint exposed as a public POST route fails to canonicalize or sanitize the filename or path parameter supplied by the client, allowing traversal sequences such as '../../../etc/passwd' to escape the intended upload directory. The specific code location is identified by the reporter as apps/server/src/core/attachment/attachment.controller.ts at line 345 in the Docmost GitHub repository at commit 0bd7ecb9b03a74e9a5e3f97b6457b82371c5ceb2. Because the endpoint is designated public (no session or token check before the path is resolved), the traversal is reachable without any credentials. The CPE entry in NVD uses n/a placeholders and does not reflect the real product.
RemediationAI
Check the Docmost GitHub repository and release notes for a version newer than v0.21.0 that addresses this path traversal - no specific patched version is identified in the available input data. Consult the Artresilia advisory at https://www.artresilia.com/docmost-v0-21-0-cve-2025-57231-unauthenticated-file-path-traversal/ and the NVD entry at https://nvd.nist.gov/vuln/detail/CVE-2025-57231 for updates. As an immediate compensating control, block external access to the avatar attachment POST endpoint at the reverse proxy or firewall level, accepting the trade-off that avatar upload functionality will be unavailable to unauthenticated users. Additionally, ensure Docmost runs under a dedicated, least-privilege OS account to limit which files are readable if exploitation occurs. Do not rely solely on EPSS to deprioritize this - the automatable SSVC rating means mass exploitation tooling is straightforward to develop.
Stored XSS in Docmost before version 0.25.0 allows authenticated attackers to inject malicious scripts into public share
Docmost versions 0.21.0 through 0.23.x contain a path traversal vulnerability in the zip import feature that allows auth
Stored XSS in Docmost 0.3.0-0.23.2 allows authenticated users to execute arbitrary JavaScript in the browsers of documen
Docmost versions 0.3.0 through 0.70.x allow authenticated users with low privileges to overwrite arbitrary attachments b
Stored cross-site scripting in Docmost's comment system allows authenticated users to plant javascript: URI hyperlinks t
Stored cross-site scripting (XSS) in Docmost prior to version 0.71.0 allows authenticated users to inject malicious `jav
Stored cross-site scripting (XSS) in Docmost prior to version 0.70.0 allows authenticated attackers to inject malicious
Docmost versions 0.70.0 through 0.70.2 allow unauthenticated users to bypass authorization controls and enumerate restri
Cross Site Scripting vulnerability in docmost v.0.21.0 and before allows an attacker to execute arbitrary code. Rated me
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2025-210887
GHSA-59m3-fj8c-996g