Description
clawvet self-hosted API server (apps/api) before 0.7.5 hard-codes a fallback JWT secret ('clawvet-dev-secret-change-me') in auth.ts and ships it as the default in .env.example. Because GET /api/v1/scans returns scan records containing userId values without authentication, a remote unauthenticated attacker can harvest a victim's userId, forge a valid HS256 cg_session cookie offline using the known secret, and call GET /api/v1/auth/me to obtain the victim's email address, subscription plan, and secret apiKey. The published clawvet npm package (CLI only) is not affected.
Published: 2026-07-17
Score: 9.3 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Clawvet, a self‑hosted API server, embeds a hard‑coded JWT secret ('clawvet‑dev‑secret‑change‑me') in auth.ts before version 0.7.5. The default secret is also shipped in .env.example. Because the endpoint GET /api/v1/scans returns scan records containing userId values without requiring authentication, an attacker who can query the endpoint can harvest a victim’s userId. With the known secret, the attacker can construct a valid HS256 cg_session cookie offline and then call GET /api/v1/auth/me to obtain the victim’s email, subscription plan, and secret apiKey.

Affected Systems

Vendor: MohibShaikh. Product: clawvet API server. Versions affected are all releases before 0.7.5; the advisory notes that only the server component (apps/api) is impacted and the npm package, which is CLI only, is not affected.

Risk and Exploitability

CVSS score of 9.3 indicates critical impact. The EPSS score of <1% suggests a low probability of exploitation in the wild, and the vulnerability is not listed in the CISA KEV catalog. The attack path is remote, unauthenticated: a client can simply request scan data, harvest the userId, forge a session cookie using the hard‑coded secret, and then query the personal information endpoint. The lack of authentication on the scans endpoint and the use of a predictable secret make exploitation straightforward once a victim’s userId is known.

Generated by OpenCVE AI on July 31, 2026 at 00:45 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade clawvet to version 0.7.5 or later to remove the hard‑coded secret
  • Replace the default JWT signing secret in the environment with a unique, high‑entropy value and ensure that secrets are not shipped in example configuration files
  • Rotate any API keys that could have been accessed if the attacker successfully forged a session; regenerate new keys and verify that the application signs new tokens with the updated secret
  • As a temporary measure, restrict access to the GET /api/v1/scans endpoint to authenticated users or otherwise deny unauthenticated requests

Generated by OpenCVE AI on July 31, 2026 at 00:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 23 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Mohibshaikh
Mohibshaikh clawvet
Vendors & Products Mohibshaikh
Mohibshaikh clawvet

Fri, 17 Jul 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Fri, 17 Jul 2026 00:30:00 +0000

Type Values Removed Values Added
Description clawvet self-hosted API server (apps/api) before 0.7.5 hard-codes a fallback JWT secret ('clawvet-dev-secret-change-me') in auth.ts and ships it as the default in .env.example. Because GET /api/v1/scans returns scan records containing userId values without authentication, a remote unauthenticated attacker can harvest a victim's userId, forge a valid HS256 cg_session cookie offline using the known secret, and call GET /api/v1/auth/me to obtain the victim's email address, subscription plan, and secret apiKey. The published clawvet npm package (CLI only) is not affected.
Title clawvet < 0.7.5 Hard-coded JWT Secret Session Forgery
Weaknesses CWE-306
CWE-321
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N'}


Subscriptions

Mohibshaikh Clawvet
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-07-17T18:05:46.735Z

Reserved: 2026-07-13T16:41:09.007Z

Link: CVE-2026-62241

cve-icon Vulnrichment

Updated: 2026-07-17T12:37:23.891Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-31T01:00:14Z

Weaknesses
  • CWE-306

    Missing Authentication for Critical Function

  • CWE-321

    Use of Hard-coded Cryptographic Key