on Package Blocking - Posit Package Manager, there is a information the blocking specific packages, either by name, version or license, might be possible in combination with an external CVE database, as the rspm create blocklist-rule command can also be used remotely.
I was wondering if any of you have experience with this topic. That is, firstly I would like to know if there are any CVEs to retrieve vulnerabilities for R and Python packages and secondly if there is an open API to automate the process of blocking packages for all developers.
Dose anyone of you have such a workflow in usage in your company?
These are published and freely available, which can be a great source of vulnerable packages and versions. Here's an example bash script of how to extract the latest vulnerabilities and create blocklist rules for each package version:
This will create a blocklist rule for every package version identified, which is over 30k rules. We've done some light performance testing with this so far and it works fine, but we hope to create a more integrated solution in a future Package Manager release.
As for CRAN packages, there are so few vulnerabilities out there, and no standard reporting location for those that are. However, given a suitable source of data, a similar approach could be taken.