CVE-2022-30618

Strapi: Improper Removal of Sensitive Information Before Storage or Transfer

No CVSS score yet EPSS 0.78%

Published 19 May 2022 Updated 3 Aug 2024 CNA: SNPS

Check your servers for CVE-2022-30618

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-30618 affects strapi, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

An authenticated user with access to the Strapi admin panel can view private and sensitive data, such as email and password reset tokens, for API users if content types accessible to the authenticated user contain relationships to API users (from:users-permissions). There are many scenarios in which such details from API users can leak in the JSON response within the admin panel, either through a direct or indirect relationship. Access to this information enables a user to compromise these users’ accounts if the password reset API endpoints have been enabled. In a worst-case scenario, a low-privileged user could get access to a high-privileged API account, and could read and modify any data as well as block access to both the admin panel and API by revoking privileges for all other users.

Exploitation

EPSS 0.78%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 52.6% of all scored CVEs. Scores of 30 Nov 2026.

Weakness

  • CWE-212 Improper Removal of Sensitive Information Before Storage or Transfer

Affected products

As the CNA lists them.

ProductVersions
Strapi
affected < 3.6.10
affected < 4.1.10

Is my server affected?

Find the installed version of strapi and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i strapi
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2022-30618 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2022-30618

RHEL, Rocky, Alma, Fedora

rpm -q strapi
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2022-30618

Alpine

apk list --installed | grep -i strapi

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2022-30618
trivy image --scanners vuln IMAGE | grep CVE-2022-30618

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2022-30618 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.