I have a web application running on Ubuntu Server 18. One of its dependencies is Ghostscript. The latest version I'm able to install via apt-get is 9.26, but I've learned that this version has a security issue.
What I'm looking for is a way of automatically detecting when a CVE is raised against a package. I had thought I could simply check the apt-get repository but all it can do is tell me if it has a newer version, not if there is a problem with the latest one it does have.
Is there some way of discovering if a version of a package has vulnerabilities from the command line? i.e. some command, or a public API or file I can build a script around?