Lookup for vulnerable packages by Package URL.

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

{
    "url": "http://public2.vulnerablecode.io/api/packages/84440?format=api",
    "purl": "pkg:composer/sylius/sylius@1.13.14",
    "type": "composer",
    "namespace": "sylius",
    "name": "sylius",
    "version": "1.13.14",
    "qualifiers": {},
    "subpath": "",
    "is_vulnerable": true,
    "next_non_vulnerable_version": "1.13.15",
    "latest_non_vulnerable_version": "2.2.3",
    "affected_by_vulnerabilities": [
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/23265?format=api",
            "vulnerability_id": "VCID-rhn2-g2vg-a7f2",
            "summary": "Sylius has a DQL Injection via API Order Filters\nSylius API filters `ProductPriceOrderFilter` and `TranslationOrderNameAndLocaleFilter` pass user-supplied order direction values directly to Doctrine's `orderBy()` without validation. An attacker can inject arbitrary DQL:\n\n```\nGET /api/v2/shop/products?order[price]=ASC,%20variant.code%20DESC\n```",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2026-31825",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00047",
                            "scoring_system": "epss",
                            "scoring_elements": "0.15129",
                            "published_at": "2026-05-30T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-31825"
                },
                {
                    "reference_url": "https://github.com/Sylius/Sylius",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/Sylius/Sylius"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31825",
                    "reference_id": "CVE-2026-31825",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31825"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-xcwx-r2gw-w93m",
                    "reference_id": "GHSA-xcwx-r2gw-w93m",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-xcwx-r2gw-w93m"
                },
                {
                    "reference_url": "https://github.com/Sylius/Sylius/security/advisories/GHSA-xcwx-r2gw-w93m",
                    "reference_id": "GHSA-xcwx-r2gw-w93m",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "5.3",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:P/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-11T14:29:15Z/"
                        }
                    ],
                    "url": "https://github.com/Sylius/Sylius/security/advisories/GHSA-xcwx-r2gw-w93m"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73532?format=api",
                    "purl": "pkg:composer/sylius/sylius@1.13.15",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@1.13.15"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73533?format=api",
                    "purl": "pkg:composer/sylius/sylius@1.14.18",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@1.14.18"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73477?format=api",
                    "purl": "pkg:composer/sylius/sylius@2.0.16",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@2.0.16"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73478?format=api",
                    "purl": "pkg:composer/sylius/sylius@2.1.12",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@2.1.12"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73479?format=api",
                    "purl": "pkg:composer/sylius/sylius@2.2.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@2.2.3"
                }
            ],
            "aliases": [
                "CVE-2026-31825",
                "GHSA-xcwx-r2gw-w93m"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-rhn2-g2vg-a7f2"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/23254?format=api",
            "vulnerability_id": "VCID-stq7-x3j7-skdy",
            "summary": "Sylius has an Open Redirect via Referer Header\n`CurrencySwitchController::switchAction()`, `ImpersonateUserController::impersonateAction()` and `StorageBasedLocaleSwitcher::handle()` use the HTTP Referer header directly when redirecting.\n\nThe attack requires the victim to click a legitimate application link placed on an attacker-controlled page. The browser automatically sends the attacker's site as the Referer, and the application redirects back to it. This can be used for phishing or credential theft, as the redirect originates from a trusted domain.\n\nThe severity varies by endpoint; public endpoints require no authentication and are trivially exploitable, while admin-only endpoints require an authenticated session but remain vulnerable if an admin follows a link from an external source such as email or chat.\n\nAffected classes:\n- `CurrencySwitchController::switchAction()` - public\n- `StorageBasedLocaleSwitcher::handle()` - public, used in locale switching without having locale in the `url`\n- `ImpersonateUserController::impersonateAction()` - admin-only",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2026-31819",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00055",
                            "scoring_system": "epss",
                            "scoring_elements": "0.17522",
                            "published_at": "2026-05-30T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-31819"
                },
                {
                    "reference_url": "https://github.com/Sylius/Sylius",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.9",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/Sylius/Sylius"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31819",
                    "reference_id": "CVE-2026-31819",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "6.9",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31819"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-9ffx-f77r-756w",
                    "reference_id": "GHSA-9ffx-f77r-756w",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-9ffx-f77r-756w"
                },
                {
                    "reference_url": "https://github.com/Sylius/Sylius/security/advisories/GHSA-9ffx-f77r-756w",
                    "reference_id": "GHSA-9ffx-f77r-756w",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "MODERATE",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "6.9",
                            "scoring_system": "cvssv4",
                            "scoring_elements": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L"
                        },
                        {
                            "value": "MODERATE",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-11T15:53:35Z/"
                        }
                    ],
                    "url": "https://github.com/Sylius/Sylius/security/advisories/GHSA-9ffx-f77r-756w"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73532?format=api",
                    "purl": "pkg:composer/sylius/sylius@1.13.15",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@1.13.15"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73533?format=api",
                    "purl": "pkg:composer/sylius/sylius@1.14.18",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@1.14.18"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73477?format=api",
                    "purl": "pkg:composer/sylius/sylius@2.0.16",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@2.0.16"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73478?format=api",
                    "purl": "pkg:composer/sylius/sylius@2.1.12",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@2.1.12"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73479?format=api",
                    "purl": "pkg:composer/sylius/sylius@2.2.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@2.2.3"
                }
            ],
            "aliases": [
                "CVE-2026-31819",
                "GHSA-9ffx-f77r-756w"
            ],
            "risk_score": 3.1,
            "exploitability": "0.5",
            "weighted_severity": "6.2",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-stq7-x3j7-skdy"
        },
        {
            "url": "http://public2.vulnerablecode.io/api/vulnerabilities/23277?format=api",
            "vulnerability_id": "VCID-vv3h-thkz-fua8",
            "summary": "Sylius has a Promotion Usage Limit Bypass via Race Condition\nA Time-of-Check To Time-of-Use (TOCTOU) race condition was discovered in the promotion usage limit enforcement. The same class of vulnerability affects three independent limits:\n\n1. **Promotion usage limit** - the global `used` counter on `Promotion` entities\n2. **Coupon usage limit** - the global `used` counter on `PromotionCoupon` entities\n3. **Coupon per-customer usage limit** - the per-customer redemption count on `PromotionCoupon` entities\n\nIn all three cases, the eligibility check reads the `used` counter (or order count) from an in-memory Doctrine entity during validation, while the actual usage increment in `OrderPromotionsUsageModifier` happens later during order completion — with no database-level locking or atomic operations between the two phases.\n\nBecause Doctrine flushes an absolute value (`SET used = 1`) rather than an atomic increment (`SET used = used + 1`), and because the affected entities lack optimistic locking, concurrent requests all read the same stale usage counts and pass the eligibility checks simultaneously.\n\nAn attacker can exploit this by preparing multiple carts with the same limited-use promotion or coupon and firing simultaneous `PATCH /api/v2/shop/orders/{token}/complete` requests. All requests pass the usage limit checks and complete successfully, allowing a single-use promotion or coupon to be redeemed an arbitrary number of times. The per-customer limit can be bypassed in the same way by a single customer completing multiple orders concurrently. No authentication is required to exploit this vulnerability.\n\nThis may lead to direct financial loss through unlimited redemption of limited-use promotions and discount coupons.",
            "references": [
                {
                    "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2026-31824",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "0.00067",
                            "scoring_system": "epss",
                            "scoring_elements": "0.20873",
                            "published_at": "2026-05-30T12:55:00Z"
                        }
                    ],
                    "url": "https://api.first.org/data/v1/epss?cve=CVE-2026-31824"
                },
                {
                    "reference_url": "https://github.com/Sylius/Sylius",
                    "reference_id": "",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.2",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/Sylius/Sylius"
                },
                {
                    "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31824",
                    "reference_id": "CVE-2026-31824",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.2",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-31824"
                },
                {
                    "reference_url": "https://github.com/advisories/GHSA-7mp4-25j8-hp5q",
                    "reference_id": "GHSA-7mp4-25j8-hp5q",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        }
                    ],
                    "url": "https://github.com/advisories/GHSA-7mp4-25j8-hp5q"
                },
                {
                    "reference_url": "https://github.com/Sylius/Sylius/security/advisories/GHSA-7mp4-25j8-hp5q",
                    "reference_id": "GHSA-7mp4-25j8-hp5q",
                    "reference_type": "",
                    "scores": [
                        {
                            "value": "8.2",
                            "scoring_system": "cvssv3.1",
                            "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L"
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "cvssv3.1_qr",
                            "scoring_elements": ""
                        },
                        {
                            "value": "HIGH",
                            "scoring_system": "generic_textual",
                            "scoring_elements": ""
                        },
                        {
                            "value": "Track",
                            "scoring_system": "ssvc",
                            "scoring_elements": "SSVCv2/E:N/A:Y/T:P/P:M/B:A/M:M/D:T/2026-03-11T15:53:30Z/"
                        }
                    ],
                    "url": "https://github.com/Sylius/Sylius/security/advisories/GHSA-7mp4-25j8-hp5q"
                }
            ],
            "fixed_packages": [
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73532?format=api",
                    "purl": "pkg:composer/sylius/sylius@1.13.15",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@1.13.15"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73533?format=api",
                    "purl": "pkg:composer/sylius/sylius@1.14.18",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@1.14.18"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73477?format=api",
                    "purl": "pkg:composer/sylius/sylius@2.0.16",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@2.0.16"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73478?format=api",
                    "purl": "pkg:composer/sylius/sylius@2.1.12",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@2.1.12"
                },
                {
                    "url": "http://public2.vulnerablecode.io/api/packages/73479?format=api",
                    "purl": "pkg:composer/sylius/sylius@2.2.3",
                    "is_vulnerable": false,
                    "affected_by_vulnerabilities": [],
                    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@2.2.3"
                }
            ],
            "aliases": [
                "CVE-2026-31824",
                "GHSA-7mp4-25j8-hp5q"
            ],
            "risk_score": 4.0,
            "exploitability": "0.5",
            "weighted_severity": "8.0",
            "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-vv3h-thkz-fua8"
        }
    ],
    "fixing_vulnerabilities": [],
    "risk_score": "4.0",
    "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/sylius/sylius@1.13.14"
}