{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:codecept:codeceptjs:3.7.3:*:*:*:*:node.js:*:*",
            "extracted_events": [
              {
                "introduced": "3.7.3"
              },
              {
                "last_affected": "3.7.3"
              }
            ],
            "source": "CPE_STRING"
          },
          "events": [
            {
              "introduced": "233838e779942d8065117c9d0d71edaf7b92b64a"
            },
            {
              "last_affected": "233838e779942d8065117c9d0d71edaf7b92b64a"
            }
          ],
          "repo": "https://github.com/codeceptjs/codeceptjs",
          "type": "GIT"
        }
      ],
      "versions": [
        "3.7.3"
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "mitre",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57285.json"
  },
  "details": "codeceptjs 3.7.3 contains 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": "CVE-2025-57285",
  "modified": "2026-07-15T01:49:07.332598227Z",
  "published": "2025-09-08T00:00:00Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://gist.github.com/Dremig/1ba111f9b1f7cffe1fcb4838b64e55b9"
    },
    {
      "type": "WEB",
      "url": "https://www.npmjs.com"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/57xxx/CVE-2025-57285.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-57285"
    }
  ],
  "schema_version": "1.8.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"
    }
  ]
}