{"answers":{"affected":"2 open source packages ship an affected version, including millisecond.","exploited":"There is no known exploitation of GHSA-m489-xr35-fjxr in the wild and no public exploit code.","fix":"Upgrade millisecond to 0.1.2 or later.","what":"GHSA-m489-xr35-fjxr is a vulnerability in millisecond, published on 22 Sep 2021."},"fix_prompt":"Check this codebase for GHSA-m489-xr35-fjxr and fix it if it is affected.\n\nWhat it is: GHSA-m489-xr35-fjxr is a vulnerability in millisecond, published on 22 Sep 2021. \nExploitation: There is no known exploitation of GHSA-m489-xr35-fjxr in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- millisecond (npm): affected all versions; fixed in 0.1.2\n- millisecond (npm): affected all versions; fixed in 0.1.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-m489-xr35-fjxr/ (Markdown: https://insights.sbomify.com/GHSA-m489-xr35-fjxr/index.md)","id":"GHSA-m489-xr35-fjxr","markdown":"https://insights.sbomify.com/GHSA-m489-xr35-fjxr/index.md","name":"GHSA-m489-xr35-fjxr","record":{"aliases":[],"analysis":null,"analysis_generated_by":null,"assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"Versions of `millisecond` prior to 0.1.2 are affected by a regular expression denial of service vulnerability when extremely long version strings are parsed.\n\n## Proof of concept\n```\nvar ms = require('millisecond');\nvar genstr = function (len, chr) {\n   var result = \"\";\n   for (i=0; i\u003c=len; i++) {\n       result = result + chr;\n   }\n\n   return result;\n}\n\nms(genstr(process.argv[2], \"5\") + \" minutea\");\n```\n\n## Recommendation\n\nUpdate to version 0.1.2 or later.","ecosystems":["npm"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Regular Expression Denial of Service in millisecond","id":"GHSA-m489-xr35-fjxr","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"npm","product":null,"products":[],"type":null,"year":"2021"},"n_packages":2,"n_references":null,"packages":[{"ecosystem":"npm","fixed":["0.1.2"],"introduced":["0"],"last_affected":[],"package":"millisecond","purl":null,"source":"GHSA-m489-xr35-fjxr"},{"ecosystem":"npm","fixed":["0.1.2"],"introduced":["0"],"last_affected":[],"package":"millisecond","purl":"pkg:npm/millisecond","source":"GHSA-m489-xr35-fjxr"}],"products":null,"published":"2021-09-22","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":null,"url":"https://insights.sbomify.com/GHSA-m489-xr35-fjxr/"}