{"id":13538709,"url":"https://github.com/appfolio/gemsurance","last_synced_at":"2025-04-02T05:31:42.796Z","repository":{"id":9353967,"uuid":"11205998","full_name":"appfolio/gemsurance","owner":"appfolio","description":"Gem vulnerability checker using rubysec/ruby-advisory-db","archived":true,"fork":false,"pushed_at":"2022-02-16T18:45:35.000Z","size":481,"stargazers_count":212,"open_issues_count":6,"forks_count":25,"subscribers_count":143,"default_branch":"master","last_synced_at":"2024-04-26T15:21:55.781Z","etag":null,"topics":["gem","ruby","vulnerability"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/appfolio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-07-05T18:38:40.000Z","updated_at":"2023-07-26T15:43:58.000Z","dependencies_parsed_at":"2022-09-22T16:20:36.823Z","dependency_job_id":null,"html_url":"https://github.com/appfolio/gemsurance","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Fgemsurance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Fgemsurance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Fgemsurance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/appfolio%2Fgemsurance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/appfolio","download_url":"https://codeload.github.com/appfolio/gemsurance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246763805,"owners_count":20829795,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gem","ruby","vulnerability"],"created_at":"2024-08-01T09:01:15.016Z","updated_at":"2025-04-02T05:31:38.644Z","avatar_url":"https://github.com/appfolio.png","language":"Ruby","readme":"[![Build Status](https://api.travis-ci.org/appfolio/gemsurance.svg?branch=master)](http://travis-ci.org/appfolio/gemsurance) [![Gem Version](https://badge.fury.io/rb/gemsurance.svg)](http://badge.fury.io/rb/gemsurance) [![Code Climate](https://codeclimate.com/github/appfolio/gemsurance.png)](https://codeclimate.com/github/appfolio/gemsurance)\n# Gemsurance: Insurance for your Gems\n\nGemsurance is a tool for monitoring if any of your Ruby Gems are out-of-date or vulnerable. It uses [Bundler](https://github.com/bundler/bundler) and the [Ruby Advisory Database](https://github.com/rubysec/ruby-advisory-db) to do so. It's similar to bundler-audit, but outputs an HTML report and determines which gems are out-of-date as well.\n\n## Getting started\nTo install Gemsurance, add\n```ruby\ngem 'gemsurance'\n```\nto your Gemfile and run bundle install.\n\nUse gemsurance by running\n```sh\nbundle exec gemsurance [options]\n```\nfrom the directory containing the Gemfile whose gems you wish to check.\n\nThis will output an HTML file (named gemsurance_report.html by default) in the current directory containing a report of your gem status: which gems are out-of-date and which gems have reported vulnerabilities in the Ruby Advisory Database. The Ruby Advisory Database git repo will be checked out into tmp/vulnerabilities relative to the working directory.\n\n![Example Gemsurance report](https://raw.github.com/appfolio/gemsurance/master/images/gemsurance_report.png)\n\nGems that are up-to-date are colored green and gems that are out-of-date but without reported vulnerabilities are colored yellow. Vulnerable gems are colored red, and information about the vulnerability and versions with a patch for the issue is displayed in the rightmost column.\n\nGemsurance exits with code 0 if there are no gems with reported vulnerabilities and code 1 if there are any such gems.\n\n### Integration into a Rails RSpec suite\nRunning the gemsurance check as part of your RSpec test suite will cause an RSpec failure whenever a gem with a known vulnerability is detected in your application. This is incredibly useful if your application is tested regularly by a CI build. You can set this up by adding sample_spec/gemsurance_spec.rb to your RSpec tests.\n\n### Command-line options\nCommand-line options to the gemsurance executable are as follows:\n- --pre: Consider pre-release gem versions\n- --output FILE: Output report to specified file\n- --whitelist FILE: Read whitelist from file. Defaults to .gemsurance.yml\n- --format FORMAT: Output report to specified format (html, csv, \u0026 yml available). Html by default.\n\nThe whitelist must be in the format\n```yaml\n---\nnokogiri:\n  CVE-2015-1819:\n    - 1.5.9\n    - 1.6.0\n  OSVDB-101179:\n    - 1.5.6\n    - 1.6.0\n```\n\n## TODOs\n- Support Git versions of gems\n- Formatting as JSON\n\n## Contributing\nContributions are always welcome. Please fork the repo and create a pull request or create an issue.\n\n## Acknowledgements\nThanks to Bundler and the Ruby Advisory Database, upon which Gemsurance is based.\n\n## License\nMIT License.\n","funding_links":[],"categories":["\u003ca id=\"683b645c2162a1fce5f24ac2abfa1973\"\u003e\u003c/a\u003e漏洞\u0026\u0026漏洞管理\u0026\u0026漏洞发现/挖掘\u0026\u0026漏洞开发\u0026\u0026漏洞利用\u0026\u0026Fuzzing","Ruby"],"sub_categories":["\u003ca id=\"9d1ce4a40c660c0ce15aec6daf7f56dd\"\u003e\u003c/a\u003e未分类-Vul"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappfolio%2Fgemsurance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fappfolio%2Fgemsurance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fappfolio%2Fgemsurance/lists"}