CVE-2023-30843: Payload Hidden Fields Can Be Leaked Vulnerability

HIGH
Advisory Identifier: GHSA-35jj-vqcf-f2jf
CVSS 7.4
CWE-200
Published
Advisory Summary

CVE-2023-30843 is a HIGH (CVSS 7.4) hidden fields can be leaked vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Payload libraries in the npm ecosystem. The issue involves hidden fields can be leaked on readable collections in payload. Remediation is available by upgrading affected packages to version 1.7.0.

CVE-2023-30843 at a Glance

CVE Identifier CVE-2023-30843
GHSA Identifier GHSA-35jj-vqcf-f2jf
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Payload
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2023-30843

To remediate this vulnerability, upgrade all affected Payload dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

payload fixed: 1.7.0
npm install payload@1.7.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

npm ls payload

How to Check if You Are Affected

To determine whether your Node.js application is affected by CVE-2023-30843, inspect your project dependencies using npm:

npm ls payload

Analyze the terminal output to locate any version of Payload in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.0), your application is affected.

Note: The npm ls payload command inspects dependencies declared in your package.json and lockfile; it does not perform automated runtime dynamic scanning.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Payload, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Details If a user has access to documents that contain hidden fields or fields they do not have access to, the user could reverse-engineer those values via brute force. Affected versions: < 1.7.0 ### Workarounds If you are unable to update, you can write a `beforeOperation` hook to remove `where` queries that attempt to access hidden field data. ### Detecting Compromise Monitor your instance for brute-force style requests against your instance using `where` queries.

CVE-2023-30843 Affected Payload Versions

1 component(s)
Fixed Versions:
1.7.0
Product / Package Ecosystem Affected Versions Fixed Version
payload
npm
< 1.7.0
1.7.0

References

Frequently Asked Questions

What is CVE-2023-30843?
CVE-2023-30843 is a security vulnerability in Payload involving Hidden fields can be leaked on readable collections in Payload under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Payload versions are affected?
Affected versions include releases prior to 1.7.0 across affected packages: payload.
What version fixes CVE-2023-30843?
Upgrading to 1.7.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is payload affected?
Yes, payload is affected in releases prior to 1.7.0. Upgrade your dependency to 1.7.0 or later.
What is the CVSS score of CVE-2023-30843?
CVE-2023-30843 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2023-30843?
CVE-2023-30843 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check npm dependencies for CVE-2023-30843?
Run the dependency tree command: 'npm ls payload'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-35jj-vqcf-f2jf",
  "modified" : "2023-04-26T19:45:04Z",
  "published" : "2023-04-26T19:45:04Z",
  "aliases" : [ "CVE-2023-30843" ],
  "summary" : "Hidden fields can be leaked on readable collections in Payload",
  "details" : "### Details\n\nIf a user has access to documents that contain hidden fields or fields they do not have access to, the user could reverse-engineer those values via brute force.\n\nAffected versions:  < 1.7.0\n\n### Workarounds\n\nIf you are unable to update, you can write a `beforeOperation` hook to remove `where` queries that attempt to access hidden field data.\n\n### Detecting Compromise\n\nMonitor your instance for brute-force style requests against your instance using `where` queries.\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "payload"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/payloadcms/payload/security/advisories/GHSA-35jj-vqcf-f2jf"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-30843"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/payloadcms/payload"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/payloadcms/payload/releases/tag/v1.7.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-04-26T19:45:04Z",
    "nvd_published_at" : "2023-04-26T21:15:09Z"
  }
}