Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/337474?format=api",
    "purl": "pkg:gem/rails@3.3",
    "type": "gem",
    "namespace": "",
    "name": "rails",
    "version": "3.3",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "6.1.7.7",
    "latest_non_vulnerable_version": "7.1.3.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/27197?format=api",
            "vulnerability_id": "VCID-vs1a-m7ya-rue8",
            "summary": "Rails vulnerable to Cross-site Scripting\nThere is an XSS vulnerability in the `number_to_currency`, `number_to_percentage` and `number_to_human` helpers in Ruby on Rails. This vulnerability has been assigned the CVE identifier CVE-2014-0081.\n\nVersions Affected:  All.\nFixed Versions:     4.1.0.beta2, 4.0.3, 3.2.17.\n\nImpact\n------\nThese helpers allows users to nicely format a numeric value. Some of the parameters to the helper (format, negative_format and units) are not escaped correctly. Applications which pass user controlled data as one of these parameters are vulnerable to an XSS attack.\n\nAll users passing user controlled data to these parameters of the number helpers should either upgrade or use one of the workarounds immediately.\n\nReleases\n--------\nThe 4.1.0.rc1, 4.0.3 and 3.2.17 releases are available at the normal locations.\n\nWorkarounds\n-----------\n\nThe workaround for this issue is to escape the value passed to the parameter.\nFor example, replace code like this:\n\n```ruby\n<%= number_to_currency(1.02, format: params[:format]) %>\n```\n\nWith code like this\n\n```ruby\n<%= number_to_currency(1.02, format: h(params[:format])) %>\n```\n\nPatches\n-------\nTo aid users who aren't able to upgrade immediately we have provided patches for the two supported release series. They are in git-am format and consist of a single changeset.\n\n* 4-1-beta-number_helpers_xss.patch - Patch for 4.1-beta series\n* 4-0-number_helpers_xss.patch - Patch for 4.0 series\n* 3-2-number_helpers_xss.patch - Patch for 3.2 series\n\nPlease note that only the 4.0.x and 3.2.x series are supported at present. Users of earlier unsupported releases are advised to upgrade as soon as possible as we cannot guarantee the continued availability of security fixes for unsupported releases.\n\nCredits\n-------\n\nThanks to Kevin Reintjes for reporting the issue to us.\n\n-- \nAaron Patterson\nhttp://tenderlovemaking.com/",
            "references": [
                {
                    "reference_url": "http://lists.opensuse.org/opensuse-updates/2014-02/msg00081.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "http://lists.opensuse.org/opensuse-updates/2014-02/msg00081.html"
                },
                {
                    "reference_url": "http://openwall.com/lists/oss-security/2014/02/18/8",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "http://openwall.com/lists/oss-security/2014/02/18/8"
                },
                {
                    "reference_url": "http://rhn.redhat.com/errata/RHSA-2014-0215.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "http://rhn.redhat.com/errata/RHSA-2014-0215.html"
                },
                {
                    "reference_url": "http://rhn.redhat.com/errata/RHSA-2014-0306.html",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "http://rhn.redhat.com/errata/RHSA-2014-0306.html"
                },
                {
                    "reference_url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2014-0081.json",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2014-0081.json"
                },
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2014-0081",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00885",
                            "scoring_system": "epss",
                            "scoring_elements": "0.75766",
                            "published_at": "2026-05-29T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2014-0081"
                },
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0081",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0081"
                },
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0082",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0082"
                },
                {
                    "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0130",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-0130"
                },
                {
                    "reference_url": "https://github.com/rails/rails",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/rails/rails"
                },
                {
                    "reference_url": "https://github.com/rails/rails/commit/08d0a11a3f62718d601d39e617c834759cf59bbb",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/rails/rails/commit/08d0a11a3f62718d601d39e617c834759cf59bbb"
                },
                {
                    "reference_url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2014-0081.yml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2014-0081.yml"
                },
                {
                    "reference_url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2014-0081.yml",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2014-0081.yml"
                },
                {
                    "reference_url": "https://groups.google.com/forum/#!topic/rubyonrails-security/tfp6gZCtzr4",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://groups.google.com/forum/#!topic/rubyonrails-security/tfp6gZCtzr4"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2014-0081",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2014-0081"
                },
                {
                    "reference_url": "https://web.archive.org/web/20140911141416/http://www.securitytracker.com/id/1029782",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://web.archive.org/web/20140911141416/http://www.securitytracker.com/id/1029782"
                },
                {
                    "reference_url": "https://web.archive.org/web/20170307202606/http://www.securityfocus.com/bid/65647",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://web.archive.org/web/20170307202606/http://www.securityfocus.com/bid/65647"
                },
                {
                    "reference_url": "https://web.archive.org/web/20201207045136/https://groups.google.com/forum/message/raw?msg=rubyonrails-security/tfp6gZCtzr4/j8LUHmu7fIEJ",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://web.archive.org/web/20201207045136/https://groups.google.com/forum/message/raw?msg=rubyonrails-security/tfp6gZCtzr4/j8LUHmu7fIEJ"
                },
                {
                    "reference_url": "https://bugzilla.redhat.com/show_bug.cgi?id=1065520",
                    "reference_id": "1065520",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://bugzilla.redhat.com/show_bug.cgi?id=1065520"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-m46p-ggm5-5j83",
                    "reference_id": "GHSA-m46p-ggm5-5j83",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-m46p-ggm5-5j83"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2014:0215",
                    "reference_id": "RHSA-2014:0215",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2014:0215"
                },
                {
                    "reference_url": "https://access.redhat.com/errata/RHSA-2014:0306",
                    "reference_id": "RHSA-2014:0306",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://access.redhat.com/errata/RHSA-2014:0306"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/60663?format=api",
                    "purl": "pkg:gem/rails@4.0.3",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-123f-6px7-3qdg"
                        },
                        {
                            "vulnerability": "VCID-42t7-kbeq-eqcm"
                        },
                        {
                            "vulnerability": "VCID-5t76-mwx9-8kc8"
                        },
                        {
                            "vulnerability": "VCID-6z21-pd9d-pfgk"
                        },
                        {
                            "vulnerability": "VCID-7g2f-y978-hqgr"
                        },
                        {
                            "vulnerability": "VCID-832g-x9kb-3bbx"
                        },
                        {
                            "vulnerability": "VCID-8bvv-wkyv-1fdp"
                        },
                        {
                            "vulnerability": "VCID-98gu-r7wd-cuah"
                        },
                        {
                            "vulnerability": "VCID-brwd-e9kx-xuc2"
                        },
                        {
                            "vulnerability": "VCID-hh65-ycrj-d7gz"
                        },
                        {
                            "vulnerability": "VCID-hmy5-ekrx-1ucn"
                        },
                        {
                            "vulnerability": "VCID-k6aw-heeb-wke2"
                        },
                        {
                            "vulnerability": "VCID-q1rj-sqa4-q3b4"
                        },
                        {
                            "vulnerability": "VCID-q4zs-hq6a-ayf6"
                        },
                        {
                            "vulnerability": "VCID-tjcm-cvtx-jbgt"
                        },
                        {
                            "vulnerability": "VCID-usyz-95tu-hyca"
                        },
                        {
                            "vulnerability": "VCID-vs1a-m7ya-rue8"
                        },
                        {
                            "vulnerability": "VCID-w8ez-zf1z-qubq"
                        },
                        {
                            "vulnerability": "VCID-wm9p-z4n1-t7cs"
                        },
                        {
                            "vulnerability": "VCID-z16b-zfgu-13a9"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@4.0.3"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/367351?format=api",
                    "purl": "pkg:gem/rails@4.1.0.beta2",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-123f-6px7-3qdg"
                        },
                        {
                            "vulnerability": "VCID-42t7-kbeq-eqcm"
                        },
                        {
                            "vulnerability": "VCID-5t76-mwx9-8kc8"
                        },
                        {
                            "vulnerability": "VCID-6z21-pd9d-pfgk"
                        },
                        {
                            "vulnerability": "VCID-7g2f-y978-hqgr"
                        },
                        {
                            "vulnerability": "VCID-832g-x9kb-3bbx"
                        },
                        {
                            "vulnerability": "VCID-8bvv-wkyv-1fdp"
                        },
                        {
                            "vulnerability": "VCID-98gu-r7wd-cuah"
                        },
                        {
                            "vulnerability": "VCID-brwd-e9kx-xuc2"
                        },
                        {
                            "vulnerability": "VCID-hmy5-ekrx-1ucn"
                        },
                        {
                            "vulnerability": "VCID-k6aw-heeb-wke2"
                        },
                        {
                            "vulnerability": "VCID-q1rj-sqa4-q3b4"
                        },
                        {
                            "vulnerability": "VCID-q4zs-hq6a-ayf6"
                        },
                        {
                            "vulnerability": "VCID-tjcm-cvtx-jbgt"
                        },
                        {
                            "vulnerability": "VCID-usyz-95tu-hyca"
                        },
                        {
                            "vulnerability": "VCID-vs1a-m7ya-rue8"
                        },
                        {
                            "vulnerability": "VCID-w8ez-zf1z-qubq"
                        },
                        {
                            "vulnerability": "VCID-wm9p-z4n1-t7cs"
                        },
                        {
                            "vulnerability": "VCID-z16b-zfgu-13a9"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@4.1.0.beta2"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/382457?format=api",
                    "purl": "pkg:gem/rails@4.1.0",
                    "is_vulnerable": true,
                    "affected_by_vulnerabilities": [
                        {
                            "vulnerability": "VCID-123f-6px7-3qdg"
                        },
                        {
                            "vulnerability": "VCID-42t7-kbeq-eqcm"
                        },
                        {
                            "vulnerability": "VCID-5t76-mwx9-8kc8"
                        },
                        {
                            "vulnerability": "VCID-6z21-pd9d-pfgk"
                        },
                        {
                            "vulnerability": "VCID-7g2f-y978-hqgr"
                        },
                        {
                            "vulnerability": "VCID-832g-x9kb-3bbx"
                        },
                        {
                            "vulnerability": "VCID-8bvv-wkyv-1fdp"
                        },
                        {
                            "vulnerability": "VCID-98gu-r7wd-cuah"
                        },
                        {
                            "vulnerability": "VCID-brwd-e9kx-xuc2"
                        },
                        {
                            "vulnerability": "VCID-hh65-ycrj-d7gz"
                        },
                        {
                            "vulnerability": "VCID-hmy5-ekrx-1ucn"
                        },
                        {
                            "vulnerability": "VCID-k6aw-heeb-wke2"
                        },
                        {
                            "vulnerability": "VCID-q1rj-sqa4-q3b4"
                        },
                        {
                            "vulnerability": "VCID-q4zs-hq6a-ayf6"
                        },
                        {
                            "vulnerability": "VCID-tjcm-cvtx-jbgt"
                        },
                        {
                            "vulnerability": "VCID-usyz-95tu-hyca"
                        },
                        {
                            "vulnerability": "VCID-vs1a-m7ya-rue8"
                        },
                        {
                            "vulnerability": "VCID-w8ez-zf1z-qubq"
                        },
                        {
                            "vulnerability": "VCID-wm9p-z4n1-t7cs"
                        },
                        {
                            "vulnerability": "VCID-z16b-zfgu-13a9"
                        }
                    ],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@4.1.0"
                }
            ],
            "aliases": [
                "CVE-2014-0081",
                "GHSA-m46p-ggm5-5j83",
                "OSV-103439"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-vs1a-m7ya-rue8"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@3.3"
}