{"id":9394,"date":"2022-10-09T10:04:18","date_gmt":"2022-10-09T10:04:18","guid":{"rendered":"http:\/\/putridparrot.com\/blog\/?p=9394"},"modified":"2022-10-09T10:04:18","modified_gmt":"2022-10-09T10:04:18","slug":"check-for-vulnerabilities-using-audit","status":"publish","type":"post","link":"https:\/\/putridparrot.com\/blog\/check-for-vulnerabilities-using-audit\/","title":{"rendered":"Check for vulnerabilities using audit"},"content":{"rendered":"<p><em>This is a reminder post as I occasionally forget this command in yarn and npm.<\/em><\/p>\n<p>Third party packages within our applications occasionally need updating due to security issues\/vulnerabilities. Github kindly supplies information via dependabot, but if you&#8217;re not using github or simply want to check the latest state of the packages used in your code, you can use<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nyarn audit\r\n<\/pre>\n<p>See <a href=\"https:\/\/classic.yarnpkg.com\/lang\/en\/docs\/cli\/audit\/\" rel=\"noopener\" target=\"_blank\">yarn audit<\/a> for more information.<\/p>\n<p>For NPM it&#8217;s the same CLI option, i.e.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nnpm audit\r\n<\/pre>\n<p>See <a href=\"https:\/\/docs.npmjs.com\/cli\/v8\/commands\/npm-audit\" rel=\"noopener\" target=\"_blank\">npm audit<\/a> for more information.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a reminder post as I occasionally forget this command in yarn and npm. Third party packages within our applications occasionally need updating due to security issues\/vulnerabilities. Github kindly supplies information via dependabot, but if you&#8217;re not using github or simply want to check the latest state of the packages used in your code, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[171,242],"tags":[],"class_list":["post-9394","post","type-post","status-publish","format-standard","hentry","category-npm","category-yarn"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/9394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/comments?post=9394"}],"version-history":[{"count":2,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/9394\/revisions"}],"predecessor-version":[{"id":9489,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/posts\/9394\/revisions\/9489"}],"wp:attachment":[{"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/media?parent=9394"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/categories?post=9394"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/putridparrot.com\/blog\/wp-json\/wp\/v2\/tags?post=9394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}