GHSA-34w8-mcwr-vg29

Suggest an improvement
Source
https://github.com/advisories/GHSA-34w8-mcwr-vg29
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-34w8-mcwr-vg29/GHSA-34w8-mcwr-vg29.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-34w8-mcwr-vg29
Aliases
Published
2025-09-08T18:31:42Z
Modified
2025-09-23T20:19:25Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

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"
}
References

Affected packages

npm / codeceptjs

Package

Affected ranges

Type
SEMVER
Events
Introduced
3.5.0
Fixed
3.7.5

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-34w8-mcwr-vg29/GHSA-34w8-mcwr-vg29.json"