CVE-2026-135400 — Ever-co Ever-gauzy — CWE-613
Ever Gauzy is an open source business management platform for ERP, CRM, HRM, ATS, and project management. Prior to 111.44.3, per-request JWT validation in packages/core/src/lib/auth/strategies/jwt.strategy.ts accepts the result of UserService.getIfExists in packages/core/src/lib/user/user.service.ts without requiring User.isActive to be true and User.isArchived to be false. When a token contains an organizationId claim, the active and archived status check applies to the UserOrganization record rather than the User entity. After an administrator deactivates an account through PATCH /api/user/:id, an existing access token can continue to authenticate API requests at the account's previous privilege level until expiration, up to 24 hours by default. This issue is fixed in version 111.44.3.
Ever Gauzy is an open source business management platform for ERP, CRM, HRM, ATS, and project management. Prior to 111.44.3, per-request JWT validation in packages/core/src/lib/auth/strategies/jwt.strategy.ts accepts the result of UserService.getIfExists in packages/core/src/lib/user/user.service.ts without requiring User.isActive to be true and User.isArchived to be false. When a token contains an organizationId claim, the active and archived status check applies to the UserOrganization record rather than the User entity. After an administrator deactivates an account through PATCH /api/user/:id, an existing access token can continue to authenticate API requests at the account's previous privilege level until expiration, up to 24 hours by default. This issue is fixed in version 111.44.3.
🎯 What is this vulnerability?
Technical flaw
Ever Gauzy’s JWT‑based authentication is performed in packages/core/src/lib/auth/strategies/jwt.strategy.ts.
When a request arrives, the strategy calls UserService.getIfExists to resolve the user record from the token’s sub claim.
The returned user object is then accepted without verifying two critical flags:
| Flag | Intended meaning | Where it should be checked |
|---|---|---|
User.isActive | User account is enabled | During JWT validation (before any request handling) |
User.isArchived | User account is not archived | During JWT validation (before any request handling) |
If the token also contains an organizationId claim, the same “active/archived” checks are mistakenly applied to the UserOrganization record instead of the User entity.
Consequences:
An account that has been deactivated via PATCH /api/user/:id (or archived) remains authenticatable* until the JWT expires (default 24 h).
- The attacker can continue to use the token at the privilege level that the user originally had (e.g., admin, manager, etc.).
The flaw is purely a logic/authorization error – it does not involve missing cryptographic checks, but it allows unauthorized* continued access.
CWE – CWE‑613 (Insufficient Authentication of Source of a Message) – the system fails to verify that the source (the user) is still valid at the time of the request.
CVSS – 9.8/10 (CRITICAL) with vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H reflects that a remote attacker can exploit this with no user interaction, low effort, and can fully compromise confidentiality, integrity, and availability.
⚡ Attack Chain
NOTE: The following chain is a realistic, step‑by‑step example that demonstrates how the flaw can be abused. The exact endpoint names or parameter names are taken from the CVE description; if a different endpoint is used in a particular deployment, the same logic applies.
1. Discovery & Reconnaissance
| Step | Technique | What to look for |
|---|---|---|
| 1.1 | Port & Service Scan | Identify HTTP(S) service on ports 80/443. |
| 1.2 | Banner Grab | curl -I https://target → look for “Ever Gauzy” in the Server: header or a custom header like X-Application: Ever Gauzy. |
| 1.3 | Version Detection | Query the public health endpoint (often /api/health or /api/version). Example: curl https://target/api/version. The response will contain a JSON object with a version field. If the version is < 111.44.3, the system is vulnerable. |
| 1.4 | User Enumeration (optional) | If the API allows unauthenticated user listing (GET /api/users?public=true), enumerate users to identify potential targets. |
2. Exploitation
The core of the attack is to obtain a valid JWT for a user that has already been deactivated (or archived). Two common ways to get such a token:
| Method | How it works |
|---|---|
| Credential theft | Phish or brute‑force a deactivated user’s credentials, then log in normally to receive a fresh token. |
| Token replay | Capture a token from a legitimate session (e.g., via a compromised device or a man‑in‑the‑middle on an internal network). |
Once you have a token, you can use it to authenticate any request. The flaw allows the token to be accepted even though the user’s isActive flag is false or isArchived is true.
PoC (illustrative)
# Assume we have a stolen JWT for user 1234 that was deactivated 2 hours ago.
TOKEN="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0IiwiYXV0aF9pZCI6IjEyMzQiLCJvcm5hbGlkSWQiOiI1Njc4IiwiZXhwIjoxNzAwMDAwMDAwfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
# Target a protected endpoint – e.g., list all projects (admin‑only).
curl -H "Authorization: Bearer $TOKEN" https://target.example.com/api/projectsIf the request succeeds, the token is still valid even though the user is deactivated.
Important: The exact endpoint (/api/projects) is illustrative. Any endpoint that requires authentication will behave the same way.3. Post‑Exploitation
Once authenticated as the deactivated user, the attacker can:
1. Maintain persistence – Use the same token until it expires (default 24 h).
2. Escalate privileges – If the deactivated user had admin rights, the attacker can:
* Create new users (including admin accounts).
* Modify existing users’ roles.
* Access sensitive data (CRM records, financials).
3. Data exfiltration – Dump database tables via API endpoints or export functions.
4. Lateral movement – Use the token to access other services that trust the same JWT (e.g., internal microservices).
Because the flaw is purely an authorization bypass, the attacker does not need to exploit any other vulnerability to gain full control.
🌍 Real World Impact
| Impact | Explanation |
|---|---|
| Confidentiality (C: H) | The attacker can read any data the deactivated user could access, including customer records, financial data, and HR information. |
| Integrity (I: H) | The attacker can modify data (e.g., change account balances, alter employee records) because the token is accepted as a legitimate session. |
| Availability (A: H) | By creating or modifying users, the attacker can lock out legitimate users, delete critical data, or disrupt business processes. |
Practical consequences
🛡️ Remediation & Mitigation
1. Exact affected versions
| Product | Affected range | Fixed in |
|---|---|---|
| Ever Gauzy | < 111.44.3 | 111.44.3 and later |
Upgrade recommendation
Immediately upgrade to 111.44.3 or newer. The patch adds a check for User.isActive and User.isArchived during JWT validation and correctly applies the check to the User entity, not the UserOrganization record.
2. Workarounds (if upgrade is not immediately possible)
| Mitigation | How to implement |
|---|---|
| Token revocation on deactivation | Add a middleware that, on each request, queries the database for User.isActive and User.isArchived. If either flag is false, reject the request with 401 Unauthorized. This can be added to the existing jwt.strategy.ts before calling super.validate. |
| Shorten token lifetime | Reduce the JWT expiration (exp) to a few hours (e.g., 2 h) so that a deactivated user’s token will expire quickly. This does not fix the flaw but limits the window of abuse. |
| WAF rule | Block requests that contain a JWT with a sub claim that matches a known deactivated user ID. Example ModSecurity rule (illustrative):<br>SecRule REQUEST_HEADERS:Authorization "@rx Bearer\s+([A-Za-z0-9\-_]+)" "id:1001,phase:2,t:none,chain"<br>SecRule MATCHED_VAR "@rx ^eyJzdWIiOiI([0-9]+)" "t:none,chain"<br>SecRule MATCHED_VAR "@rx ^eyJzdWIiOiI([0-9]+)" "t:none,chain"<br>SecRule MATCHED_VAR "@rx ^eyJzdWIiOiI([0-9]+)" "t:none,phase:2,deny,log,msg:'Deactivated user token used'" |
| Disable public user registration | If your deployment allows unauthenticated user creation, disable it to reduce the attack surface. |
NOTE: Workarounds are temporary. The only definitive fix is the version upgrade.
3. Detection
| Indicator | Log pattern | How to spot it |
|---|---|---|
| Unauthorized access after deactivation | GET /api/... - 200 - Authorization: Bearer <token> where the token’s sub claim corresponds to a user that was deactivated within the last 24 h. | Correlate sub claim with a deactivation timestamp in your audit logs. |
| Repeated requests from the same token | Multiple entries with the same Authorization header and identical sub claim. | Use log aggregation (ELK, Splunk) to flag repeated usage of a single token. |
| Unexpected privilege escalation | API responses that indicate admin actions (e.g., POST /api/users creating a new admin) performed by a user that is not listed as an admin in the audit trail. | Cross‑reference the sub claim with the user’s role in the database. |
IoCs (examples)
Authorization: Bearer eyJhbGci... – JWT containing sub claim of a deactivated user.User.isActive:false or User.isArchived:true in audit logs.PATCH /api/user/:id followed by successful GET /api/... with the same token.⚠️ Urgency
111.44.3 or later as soon as possible. If an upgrade cannot be performed within 24 h, implement the token‑revocation middleware and shorten token lifetimes to mitigate the risk.[🤖 CVE Professor AI Security Engine]
FOFA Query