Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/51740?format=api",
    "purl": "pkg:gem/rails@4.0.0.beta",
    "type": "gem",
    "namespace": "",
    "name": "rails",
    "version": "4.0.0.beta",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "4.0.2",
    "latest_non_vulnerable_version": "7.1.3.1",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/37639?format=api",
            "vulnerability_id": "VCID-vex8-56fk-gqdf",
            "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nMultiple cross-site scripting (XSS) vulnerabilities in actionview/lib/action_view/helpers/number_helper.rb in Ruby on Rails beta2 allow remote attackers to inject arbitrary web script or HTML via the (1) format, (2) negative_format, or (3) units parameter to the (a) number_to_currency, (b) number_to_percentage, or (c) number_to_human helper.",
            "references": [
                {
                    "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": "CVE-2014-0081",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2014-0081"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/51742?format=api",
                    "purl": "pkg:gem/rails@4.0.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@4.0.3"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/51743?format=api",
                    "purl": "pkg:gem/rails@4.1.0.beta2",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@4.1.0.beta2"
                }
            ],
            "aliases": [
                "CVE-2014-0081"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-vex8-56fk-gqdf"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:gem/rails@4.0.0.beta"
}