Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain Mathesar user credentials
-
DeliveryEnumerate database_id values
-
ExploitRequest metadata API with unauthorized database_id
-
ExecutionExtract form tokens from response
-
PersistSubmit crafted data via form token
-
ImpactWrite to PostgreSQL under elevated role
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated user account on the Mathesar web application-the vulnerability cannot be exploited by unauthenticated remote attackers (CVSS PR:L confirms authentication requirement). The Mathesar installation must use collaboration features with multiple databases where users have restricted access, creating a meaningful privilege boundary to bypass. The attacker must identify or enumerate valid database_id values for databases where they are not listed as collaborators; this may require prior reconnaissance through error messages, timing attacks, or social engineering. Most impactful exploitation of form token exposure requires that target databases have public forms configured, as form tokens only provide submission capability for forms explicitly created with public access. The vulnerability is exploitable against default Mathesar configurations without requiring special feature flags or non-standard deployment modes. Attack surface is limited by network access to the Mathesar web interface and the authentication requirement, but no user interaction from victims is needed once the attacker has valid credentials. |
| Impact | Real-world risk is moderate with specific constraints. CVSS 4.0 score of 5.3 accurately reflects the attack profile: network-accessible (AV:N), low complexity (AC:L), but requires authenticated user access (PR:L) to the Mathesar installation. Impact is limited to confidentiality of metadata (VC:L) with no direct integrity or availability impact on the database itself. However, risk escalates in multi-tenant deployments where multiple teams use separate databases on a shared Mathesar instance-lateral movement between database contexts becomes trivial. The form token exposure presents the most concerning scenario: an attacker gaining a public form token obtains equivalent access to the form's submission endpoint, enabling writes under the form's PostgreSQL role without proper authorization. Attack complexity remains low since no special network position or user interaction is required, only a valid Mathesar account. Absence from CISA KEV and lack of public POC suggest no widespread exploitation, though the straightforward nature of parameter manipulation (simply changing database_id values in API calls) makes exploitation accessible to moderately skilled attackers. Primary risk is for organizations using Mathesar's collaboration features to segregate database access across teams or customers within a single installation. Single-user deployments or installations where all users legitimately access all databases face minimal risk. |
| Exploit ScenarioDerived | An authenticated attacker with a standard user account on a multi-tenant Mathesar installation identifies database_id values for databases belonging to other teams through enumeration or information disclosure. They craft API requests to explorations.list or forms.list endpoints, substituting database_id parameters with target database identifiers. The application returns metadata including saved query logic and form configurations without authorization checks. For forms, the attacker extracts a form token from the response, then uses this token to submit crafted data directly to the form endpoint, bypassing intended access controls and writing to PostgreSQL tables under the form's elevated role permissions. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 15, 2026
Authenticated users in Mathesar 0.2.0 through 0.9.x can access metadata for PostgreSQL databases where they lack collaborator privileges, due to missing authorization checks in four API methods (collaborators.list, tables.metadata.list, explorations.list, forms.list). Exposed data includes table schemas, saved explorations, form configurations, and critically, public form submission tokens that grant unauthorized database write access under the form's PostgreSQL role. Fixed in version 0.10.0. CVSS 5.3 (Medium) reflects network-accessible, low-complexity exploitation requiring only basic authentication. No public exploit code or active exploitation detected (EPSS data unavailable, not in CISA KEV).
RemediationAI
Upgrade to Mathesar version 0.10.0 or later, which implements proper authorization checks verifying collaborator status before returning database metadata from affected API endpoints. Download from the project's GitHub releases page at https://github.com/mathesar-foundation/mathesar/releases. For organizations unable to immediately upgrade, implement interim controls: restrict network access to the Mathesar installation to trusted networks only using firewall rules or reverse proxy authentication, limiting the pool of potential authenticated attackers. Audit existing user accounts and remove accounts that should not have any database access. Review form configurations and regenerate form tokens for public forms that handle sensitive data, then revoke previously issued tokens if the platform supports token rotation. Consider temporarily disabling public form features if form token exposure poses unacceptable risk. Monitor application logs for unusual API access patterns, specifically requests to collaborators.list, tables.metadata.list, explorations.list, or forms.list endpoints with database_id parameters for databases the requesting user should not access. Note that workarounds only reduce attack surface and do not eliminate the vulnerability-upgrading remains the definitive solution.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Mathesar is a web application providing a user interface layer over PostgreSQL databases with role-based collaboration controls. The vulnerability stems from CWE-862 (Missing Authorization), where four API endpoints accept a database_id parameter but fail to verify the authenticated user's collaborator status for that database before returning metadata. This authorization bypass occurs at the application layer-Mathesar's middleware does not enforce its own collaboration model before querying PostgreSQL-managed data. The affected endpoints expose different metadata types: collaborators.list reveals user-to-database mappings, tables.metadata.list exposes table schemas and Mathesar annotations, explorations.list reveals saved query configurations, and forms.list returns form definitions including security-critical form tokens. For public forms, these tokens serve as bearer credentials enabling anonymous form submission with the privileges of the form's configured PostgreSQL role, potentially allowing data insertion or modification beyond the attacker's intended access scope.
Know when Mathesar gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
Mathesar is a web application that makes working with PostgreSQL databases both simple and powerful. From 0.2.0 to before 0.10.0, collaborators.list, tables.metadata.list, explorations.list, and forms.list accept a database_id without verifying that the requesting user was a collaborator on that database. An authenticated user on the same Mathesar installation could use these methods to view Mathesar-managed metadata for databases where they were not a collaborator. Depending on the database and features in use, exposed metadata could include collaborator mappings, table metadata, saved exploration metadata, and form metadata. For forms, the exposed metadata included form tokens. For public forms, possession of the token is equivalent to possession of the public form link, which allows submission to the form under the form’s configured PostgreSQL role. This vulnerability is fixed in 0.10.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
EUVD-2026-30587
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB