CVE-2023-25164: TinaCMS CLI sensitive information leak via script file

CVE-2023-25164 · Severity: low · CVSS 3.1 · Published 2023-02-08

TinaCMS CLI is a build tool for static sites using the TinaCMS headless CMS. Versions 1.0.0 through 1.0.8 expose sensitive environment variables (such as API keys for Algolia or other services) in generated script files, allowing any visitor to your site to discover and steal these credentials. This compromises security of connected third-party services and potentially allows account takeover.

Technologies: @tinacms/cli (npm). Vendors: npm.

Quick answers

Is CVE-2023-25164 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2023-25164 being exploited in the wild.
How severe is CVE-2023-25164?
Low severity, with a CVSS score of 3.1, published 8 February 2023.
Which products and versions are affected?
@tinacms/cli (npm) SEMVER:introduced=1.0.0,fixed=1.0.9.
Is there a fix for CVE-2023-25164?
Yes. @tinacms/cli (npm): upgrade to 1.0.9 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2023-25164 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2023-25164?
Check whether you run @tinacms/cli (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • @tinacms/cli (npm): upgrade to 1.0.9 or later
    npm install @tinacms/cli@1.0.9

Technical details

The vulnerability is an information exposure issue (CWE-200) in @tinacms/cli where sensitive values stored in process.env are leaked into generated script files accessible to site visitors. The vulnerable versions are @tinacms/cli 1.0.0 through 1.0.8; prior versions (pre-1.0.0) are not affected. The attack vector is network-based with no authentication required, meaning any unauthenticated visitor to an affected website can retrieve the exposed credentials from the script files. The fix is available in @tinacms/cli 1.0.9. Sites running vulnerable versions should immediately upgrade and rotate any exposed API keys or secrets.

Affected products

  • TinaCMS CLI 1.0.0 to 1.0.8

Identifiers

  • CVE-2023-25164
  • GHSA-pc2q-jcxq-rjrr

Timeline

  • 2023-02-08: disclosed
  • 2023-02-08: patched: @tinacms/cli 1.0.9 released

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.