CVE-2026-40102: Plane: ORM Field Reference Injection via `segment` Parameter in Saved Analytics
Plane is an open-source project management tool. In versions 1.3.0 and below, SavedAnalyticEndpoint passes the user-controlled segment query parameter directly to a Django F() expression without validation (unlike the regular AnalyticsEndpoint, which checks against an allowlist), causing ORM Field Reference Injection. An authenticated workspace MEMBER can send GET /api/workspaces/<slug>/saved-analytic-view/<analyticid>/ with a crafted segment value that is forwarded into buildgraphplot() and traverses foreign-key relationships (e.g. workspaceownerpassword) before being projected via .values("dimension", "segment"), returning the referenced field values directly in the JSON response. This exposes sensitive data such as bcrypt password hashes, API tokens, and related users' email addresses, making it a stronger primitive than the related orderby injection where values are only leaked through ordering. This issue has been fixed in version 1.3.1.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Plane (Saved Analytics / SavedAnalyticEndpoint)to a version that resolves this vulnerability.Fixed in 1.3.1
Event History
Frequently Asked Questions
What is the severity of CVE-2026-40102?
CVE-2026-40102 has a high severity due to its potential for remote code execution through ORM Field Reference Injection.
How do I fix CVE-2026-40102?
To fix CVE-2026-40102, upgrade to version 1.3.1 or later of the Plane project management tool.
What versions are affected by CVE-2026-40102?
CVE-2026-40102 affects versions of Plane up to and including 1.3.0.
What components are exploited in CVE-2026-40102?
CVE-2026-40102 exploits the SavedAnalyticEndpoint which uses the user-controlled segment parameter in a Django F() expression.
Can CVE-2026-40102 lead to data compromise?
Yes, CVE-2026-40102 could lead to unauthorized data access or manipulation due to the uncontrolled parameter injection.