CVE-2025-64502: Parse Server allows public `explain` queries which may expose sensitive database performance information and schema details
Impact
The MongoDB explain() method provides detailed information about query execution plans, including index usage, collection scanning behavior, and performance metrics. Parse Server permits any client to execute explain queries without requiring the master key. This exposes:
- Database schema structure and field names - Index configurations and query optimization details - Query execution statistics and performance metrics - Potential attack vectors for database performance exploitation
Patches
A new databaseOptions.allowPublicExplain configuration option has been introduced that allows to restrict explain queries to the master key. The option defaults to true for now to avoid a breaking change in production systems that depends on public explain availability. In addition, a security warning is logged when the option is not explicitly set, or set to true. In a future major release of Parse Server, the default will change to false.
Workarounds
Implementing middleware to block explain queries from non-master-key requests, or monitor and alert on explain query usage in production environments.
Other sources
Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. The MongoDB explain() method provides detailed information about query execution plans, including index usage, collection scanning behavior, and performance metrics. Prior to version 8.5.0-alpha.5, Parse Server permits any client to execute explain queries without requiring the master key. This exposes database schema structure and field names, index configurations and query optimization details, query execution statistics and performance metrics, and potential attack vectors for database performance exploitation. In version 8.5.0-alpha.5, a new databaseOptions.allowPublicExplain configuration option has been introduced that allows to restrict explain queries to the master key. The option defaults to true for now to avoid a breaking change in production systems that depends on public explain availability. In addition, a security warning is logged when the option is not explicitly set, or set to true. In a future major release of Parse Server, the default will change to false. As a workaround, implement middleware to block explain queries from non-master-key requests, or monitor and alert on explain query usage in production environments.
— NVD
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-64502?
CVE-2025-64502 has been classified with a severity rating that requires prompt attention for affected Parse Server versions.
How do I fix CVE-2025-64502?
To fix CVE-2025-64502, upgrade your Parse Server to version 8.5.0-alpha.6 or later.
Which versions of Parse Server are affected by CVE-2025-64502?
CVE-2025-64502 affects Parse Server versions up to and including 8.5.0-alpha.5.
What type of vulnerability is CVE-2025-64502?
CVE-2025-64502 is a vulnerability related to the MongoDB `explain()` method and its handling in Parse Server.
Is CVE-2025-64502 exploitability a concern for my deployment?
Yes, if you are using an affected version of Parse Server, CVE-2025-64502 poses a risk and should be addressed promptly.