Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/64198?format=api",
    "purl": "pkg:composer/ec-cube/ec-cube@4.1.0",
    "type": "composer",
    "namespace": "ec-cube",
    "name": "ec-cube",
    "version": "4.1.0",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "4.1.2-p1",
    "latest_non_vulnerable_version": "4.2.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44591?format=api",
            "vulnerability_id": "VCID-f13c-wzhp-cqap",
            "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nCross-site scripting vulnerability in Authentication Key Settings of EC-CUBE 4.0.0 to 4.0.6-p2, EC-CUBE 4.1.0 to 4.1.2-p1, and EC-CUBE 4.2.0 allows a remote authenticated attacker to inject an arbitrary script.",
            "references": [
                {
                    "reference_url": "https://jvn.jp/en/jp/JVN04785663/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://jvn.jp/en/jp/JVN04785663/"
                },
                {
                    "reference_url": "https://www.ec-cube.net/info/weakness/20230214/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.ec-cube.net/info/weakness/20230214/"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-25077",
                    "reference_id": "CVE-2023-25077",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-25077"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64201?format=api",
                    "purl": "pkg:composer/ec-cube/ec-cube@4.1.2-p1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/ec-cube/ec-cube@4.1.2-p1"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64202?format=api",
                    "purl": "pkg:composer/ec-cube/ec-cube@4.2.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/ec-cube/ec-cube@4.2.1"
                }
            ],
            "aliases": [
                "CVE-2023-25077"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-f13c-wzhp-cqap"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/46345?format=api",
            "vulnerability_id": "VCID-fuus-wqhf-s3be",
            "summary": "Improper Control of Generation of Code ('Code Injection')\nEC-CUBE 3 series (3.0.0 to 3.0.18-p6) and 4 series (4.0.0 to 4.0.6-p3, 4.1.0 to 4.1.2-p2, and 4.2.0 to 4.2.2) contain an arbitrary code execution vulnerability due to improper settings of the template engine Twig included in the product. As a result, arbitrary code may be executed on the server where the product is running by a user with an administrative privilege.",
            "references": [
                {
                    "reference_url": "https://jvn.jp/en/jp/JVN29195731/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://jvn.jp/en/jp/JVN29195731/"
                },
                {
                    "reference_url": "https://www.ec-cube.net/info/weakness/20231026/index_3.php",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.ec-cube.net/info/weakness/20231026/index_3.php"
                },
                {
                    "reference_url": "https://www.ec-cube.net/info/weakness/20231026/index_40.php",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.ec-cube.net/info/weakness/20231026/index_40.php"
                },
                {
                    "reference_url": "https://www.ec-cube.net/info/weakness/20231026/index.php",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.ec-cube.net/info/weakness/20231026/index.php"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-46845",
                    "reference_id": "CVE-2023-46845",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-46845"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64201?format=api",
                    "purl": "pkg:composer/ec-cube/ec-cube@4.1.2-p1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/ec-cube/ec-cube@4.1.2-p1"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/67635?format=api",
                    "purl": "pkg:composer/ec-cube/ec-cube@4.2.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/ec-cube/ec-cube@4.2.3"
                }
            ],
            "aliases": [
                "CVE-2023-46845"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-fuus-wqhf-s3be"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44608?format=api",
            "vulnerability_id": "VCID-he32-4cf1-akf5",
            "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nCross-site scripting vulnerability in Contents Management of EC-CUBE 4 series (EC-CUBE 4.0.0 to 4.0.6-p2, EC-CUBE 4.1.0 to 4.1.2-p1, and EC-CUBE 4.2.0), EC-CUBE 3 series (EC-CUBE 3.0.0 to 3.0.18-p5), and EC-CUBE 2 series (EC-CUBE 2.11.0 to 2.11.5, EC-CUBE 2.12.0 to 2.12.6, EC-CUBE 2.13.0 to 2.13.5, and EC-CUBE 2.17.0 to 2.17.2) allows a remote authenticated attacker to inject an arbitrary script.",
            "references": [
                {
                    "reference_url": "https://jvn.jp/en/jp/JVN04785663/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://jvn.jp/en/jp/JVN04785663/"
                },
                {
                    "reference_url": "https://www.ec-cube.net/info/weakness/20230214/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.ec-cube.net/info/weakness/20230214/"
                },
                {
                    "reference_url": "https://www.ec-cube.net/info/weakness/20230214/index_2.php",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.ec-cube.net/info/weakness/20230214/index_2.php"
                },
                {
                    "reference_url": "https://www.ec-cube.net/info/weakness/20230214/index_3.php",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.ec-cube.net/info/weakness/20230214/index_3.php"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22438",
                    "reference_id": "CVE-2023-22438",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22438"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64201?format=api",
                    "purl": "pkg:composer/ec-cube/ec-cube@4.1.2-p1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/ec-cube/ec-cube@4.1.2-p1"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64202?format=api",
                    "purl": "pkg:composer/ec-cube/ec-cube@4.2.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/ec-cube/ec-cube@4.2.1"
                }
            ],
            "aliases": [
                "CVE-2023-22438"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-he32-4cf1-akf5"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/44593?format=api",
            "vulnerability_id": "VCID-kgjm-uhbj-gffx",
            "summary": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')\nCross-site scripting vulnerability in Product List Screen and Product Detail Screen of EC-CUBE 4.0.0 to 4.0.6-p2, EC-CUBE 4.1.0 to 4.1.2-p1, and EC-CUBE 4.2.0 allows a remote authenticated attacker to inject an arbitrary script.",
            "references": [
                {
                    "reference_url": "https://jvn.jp/en/jp/JVN04785663/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://jvn.jp/en/jp/JVN04785663/"
                },
                {
                    "reference_url": "https://www.ec-cube.net/info/weakness/20230214/",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://www.ec-cube.net/info/weakness/20230214/"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22838",
                    "reference_id": "CVE-2023-22838",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-22838"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64201?format=api",
                    "purl": "pkg:composer/ec-cube/ec-cube@4.1.2-p1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/ec-cube/ec-cube@4.1.2-p1"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/64202?format=api",
                    "purl": "pkg:composer/ec-cube/ec-cube@4.2.1",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/ec-cube/ec-cube@4.2.1"
                }
            ],
            "aliases": [
                "CVE-2023-22838"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-kgjm-uhbj-gffx"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/50722?format=api",
            "vulnerability_id": "VCID-tf8y-9k9g-jbct",
            "summary": "EC-CUBE has a Vulnerability that Allows MFA Bypass in the Administrative Interface\n# Vulnerability Allowing MFA Bypass\n\n## Affected EC-CUBE Versions\nVersions: 4.1.0 – 4.3.1\n\n## Vulnerability Overview\nIf an administrator’s ID and password are compromised, an issue exists that allows an attacker to bypass the normally required two-factor authentication (2FA) and log in to the administrative interface.\n\n## Severity and Impact\n\n**CVSS v3.1 score**  \nBase score: 6.2 / Temporal score: 5.7 / Environmental score (after mitigation and countermeasures): 0.0\n\nAn attacker can forcibly overwrite the 2FA configuration of an account with administrative privileges. As a result, the legitimate administrator can be locked out, while the attacker can log in to the administrative interface and perform unauthorized actions such as viewing sensitive information or tampering with the website.\n\n## Root Cause Details\n\nThere are flaws in the access control implementation for the 2FA settings page (`/admin/two_factor_auth/set`).\n\n1. **TwoFactorAuthListener.php**  \n   The route for the 2FA settings page (`admin_two_factor_auth_set`) is included in the list of routes excluded from the 2FA authentication check.\n\n2. **TwoFactorAuthController.php**  \n   Even for users who already have 2FA configured, the implementation allows reconfiguration (overwriting) of the 2FA secret key without passing 2FA authentication.\n\n## Attack Preconditions and Steps\n\n**Preconditions:**\n- The attacker knows the administrative user’s ID and password.\n- 2FA is enabled for that user.\n\n**Attack Steps:**\n1. Attempt to log in using the ID and password.\n2. When the 2FA code entry screen is displayed, do not enter a code; instead, directly modify the URL to access `/admin/two_factor_auth/set`.\n3. Because access is not denied, the attacker can generate and save (overwrite) a new 2FA secret key.\n\n\n# MFAバイパスが可能な脆弱性\n\n## EC-CUBEバージョン\nバージョン:  4.1.0 ~ 4.3.1",
            "references": [
                {
                    "reference_url": "https://github.com/EC-CUBE/ec-cube",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/EC-CUBE/ec-cube"
                },
                {
                    "reference_url": "https://github.com/EC-CUBE/ec-cube/commit/094785943bfc3815c29f0cce9dbabb9bcc688474",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/EC-CUBE/ec-cube/commit/094785943bfc3815c29f0cce9dbabb9bcc688474"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-7rhv-h82h-vpjh",
                    "reference_id": "GHSA-7rhv-h82h-vpjh",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/advisories/GHSA-7rhv-h82h-vpjh"
                },
                {
                    "reference_url": "https://github.com/EC-CUBE/ec-cube/security/advisories/GHSA-7rhv-h82h-vpjh",
                    "reference_id": "GHSA-7rhv-h82h-vpjh",
                    "reference_type": "",
                    "scores": [],
                    "url": "https://github.com/EC-CUBE/ec-cube/security/advisories/GHSA-7rhv-h82h-vpjh"
                }
            ],
            "fixed_packages": [],
            "aliases": [
                "GHSA-7rhv-h82h-vpjh"
            ],
            "risk_score": null,
            "exploitability": null,
            "weighted_severity": null,
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-tf8y-9k9g-jbct"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": null,
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/ec-cube/ec-cube@4.1.0"
}