CVE-2022-31004: CVEProject/cve-services is an open source project used to operate the CVE services API
CVE-2022-31004 is a high-severity flaw (CVSS 7.5) affecting cve-services. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
CVEProject/cve-services is an open source project used to operate the CVE services API. A conditional in 'data.js' has potential for production secrets to be written to disk. The affected method writes the generated randomKey to disk if the environment is not development. If this method were called in production, it is possible that it would write the plaintext key to disk. A patch is not available as of time of publication but is anticipated as
Why this priority
- High severity
- Public exploit reference
- Remotely exploitable, no login, no user action
No fix is published yet: follow the downgrade or mitigation steps.
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2022-31004?
cve-services: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2022-31004 being exploited?
CVE-2022-31004 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2022-31004 affect?
CVE-2022-31004 affects cve-services. Severity is high (CVSS 7.5). CVEProject/cve-services is an open source project used to operate the CVE services API. A conditional in 'data.js' has potential for production secrets to be written to disk. The affected method writes the generated randomKey to disk if the
How urgent is CVE-2022-31004?
Priority 52/100. High severity; Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2022-24875 MEDIUM 5.3 UPGRADE The CVEProject/cve-services is an open source project used to operate the CVE services api