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/<package_name>
subdirectory of the repository. The fingerprint for a package can be found in its build.zig.zon. For example if the name is zbor
, the advisory is placed in packages/zbor/
.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. Together with ZAT, this is part of a research project on how to increase the security of the Zig ecosystem through transparency.