Vulnerability Instance
Lookup for vulnerabilities affecting packages.
GET /api/vulnerabilities/25957?format=api
{ "url": "http://public2.vulnerablecode.io/api/vulnerabilities/25957?format=api", "vulnerability_id": "VCID-2mrj-u2wu-wkhv", "summary": "Twig security issue where escaping was missing when using null coalesce operator\nWhen using the `??` operator, output escaping was missing for the expression on the left side of the operator.", "aliases": [ { "alias": "CVE-2025-24374" }, { "alias": "GHSA-3xg3-cgvq-2xwr" } ], "fixed_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/69268?format=api", "purl": "pkg:composer/twig/twig@3.19.0", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/twig/twig@3.19.0" }, { "url": "http://public2.vulnerablecode.io/api/packages/935080?format=api", "purl": "pkg:deb/debian/php-twig@3.19.0-1~bootstrap?distro=trixie", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@3.19.0-1~bootstrap%3Fdistro=trixie" }, { "url": "http://public2.vulnerablecode.io/api/packages/994942?format=api", "purl": "pkg:deb/debian/php-twig@3.20.0-2", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@3.20.0-2" }, { "url": "http://public2.vulnerablecode.io/api/packages/935074?format=api", "purl": "pkg:deb/debian/php-twig@3.20.0-2?distro=trixie", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@3.20.0-2%3Fdistro=trixie" }, { "url": "http://public2.vulnerablecode.io/api/packages/935073?format=api", "purl": "pkg:deb/debian/php-twig@3.24.0-1?distro=trixie", "is_vulnerable": false, "affected_by_vulnerabilities": [], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@3.24.0-1%3Fdistro=trixie" } ], "affected_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/570042?format=api", "purl": "pkg:composer/twig/twig@3.16.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-2mrj-u2wu-wkhv" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/twig/twig@3.16.0" }, { "url": "http://public2.vulnerablecode.io/api/packages/744508?format=api", "purl": "pkg:composer/twig/twig@3.17.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-2mrj-u2wu-wkhv" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/twig/twig@3.17.0" }, { "url": "http://public2.vulnerablecode.io/api/packages/744509?format=api", "purl": "pkg:composer/twig/twig@3.17.1", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-2mrj-u2wu-wkhv" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/twig/twig@3.17.1" }, { "url": "http://public2.vulnerablecode.io/api/packages/744510?format=api", "purl": "pkg:composer/twig/twig@3.18.0", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-2mrj-u2wu-wkhv" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:composer/twig/twig@3.18.0" }, { "url": "http://public2.vulnerablecode.io/api/packages/994940?format=api", "purl": "pkg:deb/debian/php-twig@2.14.3-1%2Bdeb11u2", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-1au7-86r7-8qdn" }, { "vulnerability": "VCID-2mrj-u2wu-wkhv" }, { "vulnerability": "VCID-cd24-q2ys-yfbe" }, { "vulnerability": "VCID-etje-vrfw-nbh4" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@2.14.3-1%252Bdeb11u2" }, { "url": "http://public2.vulnerablecode.io/api/packages/935071?format=api", "purl": "pkg:deb/debian/php-twig@2.14.3-1%2Bdeb11u2?distro=trixie", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-2mrj-u2wu-wkhv" }, { "vulnerability": "VCID-cd24-q2ys-yfbe" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@2.14.3-1%252Bdeb11u2%3Fdistro=trixie" }, { "url": "http://public2.vulnerablecode.io/api/packages/994941?format=api", "purl": "pkg:deb/debian/php-twig@3.5.1-1%2Bdeb12u1", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-1au7-86r7-8qdn" }, { "vulnerability": "VCID-2mrj-u2wu-wkhv" }, { "vulnerability": "VCID-cd24-q2ys-yfbe" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@3.5.1-1%252Bdeb12u1" }, { "url": "http://public2.vulnerablecode.io/api/packages/935069?format=api", "purl": "pkg:deb/debian/php-twig@3.5.1-1%2Bdeb12u1?distro=trixie", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-1au7-86r7-8qdn" }, { "vulnerability": "VCID-2mrj-u2wu-wkhv" }, { "vulnerability": "VCID-cd24-q2ys-yfbe" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:deb/debian/php-twig@3.5.1-1%252Bdeb12u1%3Fdistro=trixie" } ], "references": [ { "reference_url": "https://api.first.org/data/v1/epss?cve=CVE-2025-24374", "reference_id": "", "reference_type": "", "scores": [ { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52945", "published_at": "2026-05-14T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52801", "published_at": "2026-04-07T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52853", "published_at": "2026-04-08T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52847", "published_at": "2026-04-09T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52897", "published_at": "2026-04-11T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52881", "published_at": "2026-04-12T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52865", "published_at": "2026-04-13T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52902", "published_at": "2026-04-16T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52909", "published_at": "2026-04-18T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52892", "published_at": "2026-04-21T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52861", "published_at": "2026-04-24T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52871", "published_at": "2026-04-26T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52833", "published_at": "2026-04-29T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52785", "published_at": "2026-05-05T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52836", "published_at": "2026-05-07T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52879", "published_at": "2026-05-09T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52846", "published_at": "2026-05-11T12:55:00Z" }, { "value": "0.00296", "scoring_system": "epss", "scoring_elements": "0.52872", "published_at": "2026-05-12T12:55:00Z" }, { "value": "0.00304", "scoring_system": "epss", "scoring_elements": "0.53638", "published_at": "2026-04-04T12:55:00Z" }, { "value": "0.00304", "scoring_system": "epss", "scoring_elements": "0.5361", "published_at": "2026-04-02T12:55:00Z" } ], "url": "https://api.first.org/data/v1/epss?cve=CVE-2025-24374" }, { "reference_url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-24374", "reference_id": "", "reference_type": "", "scores": [], "url": "https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2025-24374" }, { "reference_url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2025-24374.yaml", "reference_id": "", "reference_type": "", "scores": [ { "value": "4.3", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N" }, { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/twig/twig/CVE-2025-24374.yaml" }, { "reference_url": "https://github.com/twigphp/Twig", "reference_id": "", "reference_type": "", "scores": [ { "value": "4.3", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N" }, { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://github.com/twigphp/Twig" }, { "reference_url": "https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3", "reference_id": "", "reference_type": "", "scores": [ { "value": "4.3", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N" }, { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" }, { "value": "Track", "scoring_system": "ssvc", "scoring_elements": "SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-01-29T15:44:45Z/" } ], "url": "https://github.com/twigphp/Twig/commit/38576b12f05df3cc871bf68f39ccb46b418334a3" }, { "reference_url": "https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr", "reference_id": "", "reference_type": "", "scores": [ { "value": "4.3", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/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:N/A:N/T:P/P:M/B:A/M:M/D:T/2025-01-29T15:44:45Z/" } ], "url": "https://github.com/twigphp/Twig/security/advisories/GHSA-3xg3-cgvq-2xwr" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2025-24374", "reference_id": "", "reference_type": "", "scores": [ { "value": "4.3", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N" }, { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-24374" }, { "reference_url": "https://symfony.com/blog/twig-cve-2025-24374-missing-output-escaping-for-the-null-coalesce-operator", "reference_id": "", "reference_type": "", "scores": [ { "value": "4.3", "scoring_system": "cvssv3.1", "scoring_elements": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N" }, { "value": "MODERATE", "scoring_system": "generic_textual", "scoring_elements": "" } ], "url": "https://symfony.com/blog/twig-cve-2025-24374-missing-output-escaping-for-the-null-coalesce-operator" }, { "reference_url": "https://github.com/advisories/GHSA-3xg3-cgvq-2xwr", "reference_id": "GHSA-3xg3-cgvq-2xwr", "reference_type": "", "scores": [ { "value": "MODERATE", "scoring_system": "cvssv3.1_qr", "scoring_elements": "" } ], "url": "https://github.com/advisories/GHSA-3xg3-cgvq-2xwr" } ], "weaknesses": [ { "cwe_id": 74, "name": "Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')", "description": "The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component." }, { "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": "4.0 - 6.9", "exploitability": "0.5", "weighted_severity": "6.2", "risk_score": 3.1, "resource_url": "http://public2.vulnerablecode.io/vulnerabilities/VCID-2mrj-u2wu-wkhv" }