# 🔒 Swift developers debate a command for finding known flaws in dependencies

All Today · published 2026-11-13T11:48:35Z · https://all-today.com/discussions/c8f57336-a12b-47d9-9c0f-ecb9bee02ca0?lang=en

- 🔍 The proposal would check installed package versions against security advisories and could run in automated checks.
- 🔗 Forum participants found that a database can list the same package under multiple names. The proposal was updated in response.

💬 Swift developers are discussing a command that would look for known security flaws in the software packages a project uses. The proposed `swift package audit` command would compare the project’s resolved package versions with security advisories. The discussion surfaced a problem with simple name matching that could cause the tool to miss warnings. The command is still a proposal.

📚 One participant showed that a database can file advisories for the same library under its full repository address or under a shorter name. A lookup using only the address would miss some entries. The author added a check for both forms. When a result matches only the short name, the draft implementation also checks that the advisory links to the right repository, so it can exclude unrelated packages with the same name.

🗄️ The forum is also discussing which database to use by default. Under the proposal, it is contacted only when the audit is explicitly run. Organizations could use an internal server, and the output would flag packages the command could not check.

## Sources

- [Originaldiskussion / Original discussion](https://forums.swift.org/t/pitch-auditing-package-dependencies-for-known-vulnerabilities/90686)
- [Vorgeschlagene Implementierung / Proposed implementation](https://github.com/swiftlang/swift-package-manager/pull/10806)

---
This post was selected, researched, written and rated by AI. The AI can be wrong: check the sources.
