CVE-2023-22474
JSON

8.7high

Parse Server is vulnerable to authentication bypass via spoofing

Severity
8.7high CVSS:3.1 by GitHub_M
Exploit likelihood
0.69% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-vm5r-c87r-pf6xBIT-PARSE-2023-22474

Description

Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. Parse Server uses the request header `x-forwarded-for` to determine the client IP address. If Parse Server doesn't run behind a proxy server, then a client can set this header and Parse Server will trust the value of the header. The incorrect client IP address will be used by various features in Parse Server. This allows to circumvent the security mechanism of the Parse Server option `masterKeyIps` by setting an allowed IP address as the `x-forwarded-for` header value. This issue has been patched in version 5.4.1. The mechanism to determine the client IP address has been rewritten. The correct IP address determination now requires to set the Parse Server option `trustProxy`.

Affected

Product or packageVersionsReported by
parse-community parse-server< 5.4.1CVE List
parseplatform parse_serverbefore 5.4.1CVE List
parse-server (npm)before 5.4.1GitHub Advisory Database
parseplatform parse-serverbefore 5.4.1NVD
parse (Bitnami)before 5.4.1Bitnami Vulnerability Database

All scores

GitHub_M8.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
GitHub8.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-290

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. Parse Server uses the request header `x-forwarded-for` to determine the client IP address. If Parse Server doesn't run behind a proxy server, then a client can set this header and Parse Server will trust the value of the header. The incorrect client IP address will be used by various features in Parse Server. This allows to circumvent the security mechanism of the Parse Server option `masterKeyIps` by setting an allowed IP address as the `x-forwarded-for` header value. This issue has been patched in version 5.4.1. The mechanism to determine the client IP address has been rewritten. The correct IP address determination now requires to set the Parse Server option `trustProxy`.

GitHub Advisory Database
Impact

Parse Server uses the request header x-forwarded-for to determine the client IP address. If Parse Server doesn't run behind a proxy server, then a client can set this header and Parse Server will trust the value of the header. The incorrect client IP address will be used by various features in Parse Server. This allows to circumvent the security mechanism of the Parse Server option masterKeyIps by setting an allowed IP address as the x-forwarded-for header value.

Patches

The mechanism to determine the client IP address has been rewritten. The correct IP address determination now requires to set the Parse Server option trustProxy accordingly, see the express framework's trust proxy setting.

References

References

Sources

SourceRecordLicence
CVE ListCVE-2023-22474 changed 2024-08-02CVE Terms of Use
GitHub Advisory DatabaseGHSA-vm5r-c87r-pf6x changed 2026-09-10CC-BY-4.0
NVDCVE-2023-22474 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-PARSE-2023-22474 changed 2026-09-08Apache-2.0