To add an advisory to the Zig-Sec database, open a Pull Request agains the Zig-Sec/advisory-db repository.
ZIGSEC-0000-0000.zon
in the packages/<fingerprint>
subdirectory of the repository. The fingerprint for a package can be found in its build.zig.zon. Please specify the fingerprint without 0x
, e.g. if the fingerprint is 0x1a06b10ba57a349a
, the advisory is placed in packages/1a06b10ba57a349a/
.ZIGSEC-YYYY-NNNN
and be published to the database.The following vulnerabilities qualify for an advisory:
Q: Do I need to be the owner of a package to file an advisory?
A: No, anyone can file an advisory against a package. Make sure the package has a certain reach and describe the vulnerability in detail. We must be able to validate the vulnerability in order to merge it. It makes sense to inform the maintainers of a package before filing an advisory.
Q: Is this the official way to report vulnerabilities for Zig packages?
A: There are many ways to report vulnerabilities for software including the GitHub Advisory Database and the Open Source Vulnerabilities Database. This is just another way inspired by RustSEC and dedicated specifically to Zig packages.