Information Exposure Affecting @strapi/database package, versions <4.10.8


0.0
high

Snyk CVSS

    Attack Complexity Low
    Scope Changed
    Confidentiality High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.08% (36th percentile)
Expand this section
NVD
7.5 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-JS-STRAPIDATABASE-5805288
  • published 26 Jul 2023
  • disclosed 26 Jul 2023
  • credit Boegie19

How to fix?

Upgrade @strapi/database to version 4.10.8 or higher.

Overview

@strapi/database is a Strapi's database layer

Affected versions of this package are vulnerable to Information Exposure such that it is possible to leak private fields if one is using the t(number) prefix. Knex query allows users to change the default prefix. For example, if someone changes the prefix to be the same as it was before or to another table they want to query, the query changes from password to t1.password. password is protected by filtering protections but t1.password is not protected.

Note:

This can lead to filtering attacks on everything related to the object, including admin passwords and reset-tokens.