There is such a thing for Nixpkgs: https://determinate.systems/blog/nixpkgs-cooldown/#reducing-...
And of course there are many SBOM tools for vulns which are known and assigned a CVE. One tool was posted here recently, haven't had the opportunity to try it yet: https://news.ycombinator.com/item?id=50046864