Package Instance
Lookup for vulnerable packages by Package URL.
GET /api/packages/209006?format=api
{ "url": "http://public2.vulnerablecode.io/api/packages/209006?format=api", "purl": "pkg:composer/squizlabs/php_codesniffer@2.7.0", "type": "composer", "namespace": "squizlabs", "name": "php_codesniffer", "version": "2.7.0", "qualifiers": {}, "subpath": "", "is_vulnerable": true, "next_non_vulnerable_version": "2.8.1", "latest_non_vulnerable_version": "3.0.1", "affected_by_vulnerabilities": [ { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42788?format=api", "vulnerability_id": "VCID-9hmc-9e7p-43cq", "summary": "Arbitrary shell execution\nUses of `shell_exec()` and `exec()` were not escaping filenames and configuration settings in most cases.", "references": [ { "reference_url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/2017-03-01.yaml", "reference_id": "", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/squizlabs/php_codesniffer/2017-03-01.yaml" }, { "reference_url": "https://github.com/squizlabs/PHP_CodeSniffer", "reference_id": "", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/squizlabs/PHP_CodeSniffer" }, { "reference_url": "https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1", "reference_id": "", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1" }, { "reference_url": "https://github.com/advisories/GHSA-mhfv-8rc9-w38c", "reference_id": "GHSA-mhfv-8rc9-w38c", "reference_type": "", "scores": [ { "value": "HIGH", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-mhfv-8rc9-w38c" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/61127?format=api", "purl": "pkg:composer/squizlabs/php_codesniffer@2.8.1", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/squizlabs/php_codesniffer@2.8.1" } ], "aliases": [ "GHSA-mhfv-8rc9-w38c", "GMS-2022-514" ], "risk_score": 4.0, "exploitability": "0.5", "weighted_severity": "8.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-9hmc-9e7p-43cq" }, { "url": "http://public2.vulnerablecode.io/api/vulnerabilities/38493?format=api", "vulnerability_id": "VCID-hdht-gm7m-jfez", "summary": "Arbitrary shell execution\nThis release contains a fix for a security advisory related to the improper handling of shell commands. Uses of `shell_exec()` and `exec()` were not escaping filenames and configuration settings in most cases A properly crafted filename or configuration option would allow for arbitrary code execution when using some features.", "references": [ { "reference_url": "https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/squizlabs/PHP_CodeSniffer/releases/tag/2.8.1" } ], "fixed_packages": [], "aliases": [ "GMS-2017-112" ], "risk_score": null, "exploitability": "0.5", "weighted_severity": "0.0", "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-hdht-gm7m-jfez" } ], "fixing_vulnerabilities": [], "risk_score": "4.0", "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/squizlabs/php_codesniffer@2.7.0" }