CVE-2023-25164: @tinacms/cli Sensitive Information Leak Vulnerability

HIGH
Advisory Identifier: GHSA-pc2q-jcxq-rjrr
CVSS 8.6
CWE-200
Published
Advisory Summary

CVE-2023-25164 is a HIGH (CVSS 8.6) sensitive information leak vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting @tinacms/cli libraries in the npm ecosystem. The issue involves sensitive information leak via script file in tinacms. Remediation is available by upgrading affected packages to version 1.0.9.

CVE-2023-25164 at a Glance

CVE Identifier CVE-2023-25164
GHSA Identifier GHSA-pc2q-jcxq-rjrr
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product @tinacms/cli
Package Ecosystem npm
Published Date
Last Updated

Security Impact

CVSS: 8.6

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

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

How to Fix CVE-2023-25164

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

@tinacms/cli fixed: 1.0.9
npm install @tinacms/cli@1.0.9
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 @tinacms/cli

How to Check if You Are Affected

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

npm ls @tinacms/cli

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

Note: The npm ls @tinacms/cli 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 @tinacms/cli, 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

### Impact Sensitive Information leaked via script File in TinaCMS. Sites building with @tinacms/cli >= 1.0.0 && < 1.0.9 that store sensitive values in process.env var are impacted. If you're on a version prior to 1.0.0 this vulnerability does not affect you. If your Tina-enabled website has sensitive credentials stored as environment variables (eg. Algolia API keys) you should rotate those keys immediately. ### Patches This issue has been patched in @tinacms/cli@1.0.9 ### Workarounds Upgrading, and rotating secure & exposed keys is required for the proper fix. ### References https://github.com/tinacms/tinacms/pull/3584

CVE-2023-25164 Affected @tinacms/cli Versions

1 component(s)
Fixed Versions:
1.0.9
Product / Package Ecosystem Affected Versions Fixed Version
@tinacms/cli
npm
≥ 1.0.0
< 1.0.9
1.0.9

References

Frequently Asked Questions

What is CVE-2023-25164?
CVE-2023-25164 is a security vulnerability in @tinacms/cli involving Sensitive Information leak via Script File in TinaCMS under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which @tinacms/cli versions are affected?
Affected versions include releases prior to 1.0.9 across affected packages: @tinacms/cli.
What version fixes CVE-2023-25164?
Upgrading to 1.0.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is @tinacms/cli affected?
Yes, @tinacms/cli is affected in releases prior to 1.0.9. Upgrade your dependency to 1.0.9 or later.
What is the CVSS score of CVE-2023-25164?
CVE-2023-25164 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2023-25164?
CVE-2023-25164 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-25164?
Run the dependency tree command: 'npm ls @tinacms/cli'. 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-pc2q-jcxq-rjrr",
  "modified" : "2023-02-08T22:40:18Z",
  "published" : "2023-02-08T18:18:05Z",
  "aliases" : [ "CVE-2023-25164" ],
  "summary" : "Sensitive Information leak via Script File in TinaCMS",
  "details" : "### Impact\n\nSensitive Information leaked via script File in TinaCMS. Sites building with @tinacms/cli >= 1.0.0 && < 1.0.9 that store sensitive values in process.env var are impacted. If you're on a version prior to 1.0.0 this vulnerability does not affect you.\n\nIf your Tina-enabled website has sensitive credentials stored as environment variables (eg. Algolia API keys) you should rotate those keys immediately.\n\n### Patches\n\nThis issue has been patched in @tinacms/cli@1.0.9\n\n### Workarounds\n\nUpgrading, and rotating secure & exposed keys is required for the proper fix.\n\n### References\n\nhttps://github.com/tinacms/tinacms/pull/3584",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "npm",
      "name" : "@tinacms/cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.0.0"
      }, {
        "fixed" : "1.0.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/tinacms/tinacms/security/advisories/GHSA-pc2q-jcxq-rjrr"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2023-25164"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/tinacms/tinacms/pull/3584"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/tinacms/tinacms"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-02-08T18:18:05Z",
    "nvd_published_at" : "2023-02-08T20:15:00Z"
  }
}