Skip to content
Heist/ feed
Back to feed
Low

node-zx — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-24959

zx is a tool for writing better scripts. An attacker with control over environment variable values can inject unintended environment variables into `process.env`. This can lead to arbitrary command execution or unexpected behavior in applications that rely on environment variables for security-sensitive operations. Applications that process untrusted input and pass it through `dotenv.stringify` are particularly vulnerable. This issue has been patched in version 8.3.2. Users should immediately upgrade to this version to mitigate the vulnerability. If upgrading is not feasible, users can mitigate the vulnerability by sanitizing user-controlled environment variable values before passing them to `dotenv.stringify`. Specifically, avoid using `"`, `'`, and backticks in values, or enforce strict validation of environment variables before usage.

Products
node-zx
Affected versions
7.1.1+~cs6.7.23-2, 7.1.1+~cs6.7.23-3, 7.1.1+~cs6.7.23-4
Fixed versions
Not specified
CVEs
CVE-2025-24959
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:47 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-24959

core-osv · Original source

Published 3 Feb 2025, 21:15 UTC

zx is a tool for writing better scripts. An attacker with control over environment variable values can inject unintended environment variables into `process.env`. This can lead to arbitrary command execution or unexpected behavior in applications that rely on environment variables for security-sensitive operations. Applications that process untrusted input and pass it through `dotenv.stringify` are particularly vulnerable. This issue has been patched in version 8.3.2. Users should immediately upgrade to this version to mitigate the vulnerability. If upgrading is not feasible, users can mitigate the vulnerability by sanitizing user-controlled environment variable values before passing them to `dotenv.stringify`. Specifically, avoid using `"`, `'`, and backticks in values, or enforce strict validation of environment variables before usage.

osv:UBUNTU-CVE-2025-24959

node-zx

Fixed versions: Not specified

node-zx

Fixed versions: Not specified

node-zx

Fixed versions: Not specified

node-zx

Fixed versions: Not specified

Complete source record
{
  "id": "ae282e12a5b853b051bedc14477866fb9844b24efa9231cf51e86a70bafb15db",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-24959",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-24959",
    "summary": "zx is a tool for writing better scripts. An attacker with control over environment variable values can inject unintended environment variables into `process.env`. This can lead to arbitrary command execution or unexpected behavior in applications that rely on environment variables for security-sensitive operations. Applications that process untrusted input and pass it through `dotenv.stringify` are particularly vulnerable. This issue has been patched in version 8.3.2. Users should immediately upgrade to this version to mitigate the vulnerability. If upgrading is not feasible, users can mitigate the vulnerability by sanitizing user-controlled environment variable values before passing them to `dotenv.stringify`. Specifically, avoid using `\"`, `'`, and backticks in values, or enforce strict validation of environment variables before usage.",
    "evidence": "osv:UBUNTU-CVE-2025-24959",
    "products": [
      {
        "name": {
          "value": "node-zx",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.1.1+~cs6.7.23-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "7.1.1+~cs6.7.23-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-zx",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.1.1+~cs6.7.23-3",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-zx",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.1.1+~cs6.7.23-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "7.1.1+~cs6.7.23-4",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "node-zx",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.1.1+~cs6.7.23-3",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "low",
    "structured": {
      "id": "UBUNTU-CVE-2025-24959",
      "aliases": [
        "UBUNTU-CVE-2025-24959"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-zx",
            "purl": "pkg:deb/ubuntu/node-zx?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "7.1.1+~cs6.7.23-2",
            "7.1.1+~cs6.7.23-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-24959.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zx",
                "binary_version": "7.1.1+~cs6.7.23-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-zx",
            "purl": "pkg:deb/ubuntu/node-zx?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "7.1.1+~cs6.7.23-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-24959.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zx",
                "binary_version": "7.1.1+~cs6.7.23-3"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-zx",
            "purl": "pkg:deb/ubuntu/node-zx?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "7.1.1+~cs6.7.23-3",
            "7.1.1+~cs6.7.23-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-24959.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zx",
                "binary_version": "7.1.1+~cs6.7.23-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-zx",
            "purl": "pkg:deb/ubuntu/node-zx?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "7.1.1+~cs6.7.23-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-24959.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "zx",
                "binary_version": "7.1.1+~cs6.7.23-3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:26.553782854Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-24959"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-24959",
        "https://www.cve.org/CVERecord?id=CVE-2025-24959",
        "https://github.com/google/zx/pull/1094",
        "https://github.com/google/zx/security/advisories/GHSA-qwp8-x4ff-5h87"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-24959",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 357486,
  "published_at": "2025-02-03T21:15:00+00:00"
}