Security advisories api
There are three RSS feeds:


Core security announcements
Third-party modules announcements
Public service announcements


Using PHP, you can parse one of those RSS feeds to get the data you need.