MEDUSA v2026.5.1 — Logic Bug Fixes
Bug Fixes in v2026.5.1
🔴 Critical
--fail-onseverity filtering — was counting ALL issues regardless of severity level.--fail-on criticalnow correctly exits non-zero only when CRITICAL issues are found. Previously it would exit on any LOW finding and falsely report "Found N issues at CRITICAL+ level".medusa initnext steps — was recommending deprecatedmedusa install --all(does nothing). Now correctly showsmedusa install --ai-tools.
🟠 High
.envdouble-counting — files named.envwere counted twice in file type detection (once by extension, once by name check), inflating stats.- PHP install prompt in CI — did not check
sys.stdin.isatty(), causing hangs in non-interactive environments.
🟡 Medium
- Dead code removed — redundant target path check after an earlier check already exits with code 2.
- Windows npm.cmd — redundant
shutil.which('npm.cmd')call removed (result from first call was already checked).
🟢 Low
- SBOM version — was hardcoded to
2025.9.0.0in both CycloneDX and SPDX output. Now uses__version__. - Pattern analyzer dotfiles —
.cursorrules,.clinerules,.windsurfrules,.env,.mcp.json,.continuenow scanned by the repo analyzer (were silently skipped).
Install / Upgrade
pip install --upgrade medusa-securityThanks to @exrienz for reporting the install logic bug in discussion #2 that kicked off this audit.