GHSA-34W8-MCWR-VG29

Vulnerability from github – Published: 2025-09-08 18:31 – Updated: 2025-09-23 20:19
VLAI?
Summary
CodeceptJS's incomprehensive sanitation can lead to Command Injection
Details

CodeceptJS versions 3.5.0 through 3.7.5-beta.18 contain a command injection vulnerability in the emptyFolder function (lib/utils.js). The execSync command directly concatenates the user-controlled directoryPath parameter without sanitization or escaping, allowing attackers to execute arbitrary commands.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "codeceptjs"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.5.0"
            },
            {
              "fixed": "3.7.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2025-57285"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-77"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2025-09-10T17:11:21Z",
    "nvd_published_at": "2025-09-08T18:15:34Z",
    "severity": "CRITICAL"
  },
  "details": "CodeceptJS versions 3.5.0 through 3.7.5-beta.18 contain a command injection vulnerability in the emptyFolder function (lib/utils.js). The execSync command directly concatenates the user-controlled directoryPath parameter without sanitization or escaping, allowing attackers to execute arbitrary commands.",
  "id": "GHSA-34w8-mcwr-vg29",
  "modified": "2025-09-23T20:19:25Z",
  "published": "2025-09-08T18:31:42Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-57285"
    },
    {
      "type": "WEB",
      "url": "https://github.com/codeceptjs/CodeceptJS/pull/3604"
    },
    {
      "type": "WEB",
      "url": "https://github.com/codeceptjs/CodeceptJS/pull/5190"
    },
    {
      "type": "WEB",
      "url": "https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/codeceptjs/CodeceptJS"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "CodeceptJS\u0027s incomprehensive sanitation can lead to Command Injection"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…