Vulnerability Instance
Lookup for vulnerabilities affecting packages.
GET /api/vulnerabilities/42594?format=api
{ "url": "http://public2.vulnerablecode.io/api/vulnerabilities/42594?format=api", "vulnerability_id": "VCID-z3eu-wjtb-ryf1", "summary": "Code injection in RazorEngine\nIn the IsolatedRazorEngine component of Antaris RazorEngine through 4.5.1-alpha001, an attacker can execute arbitrary .NET code in a sandboxed environment (if users can externally control template contents). NOTE: This vulnerability only affects products that are no longer supported by the maintainer.", "aliases": [ { "alias": "CVE-2021-46703" }, { "alias": "GHSA-ph3v-2hq5-5qfq" } ], "fixed_packages": [], "affected_packages": [ { "url": "http://public2.vulnerablecode.io/api/packages/60911?format=api", "purl": "pkg:nuget/RazorEngine@4.5.1-alpha001", "is_vulnerable": true, "affected_by_vulnerabilities": [ { "vulnerability": "VCID-z3eu-wjtb-ryf1" } ], "resource_url": "http://public2.vulnerablecode.io/packages/pkg:nuget/RazorEngine@4.5.1-alpha001" } ], "references": [ { "reference_url": "https://github.com/Antaris/RazorEngine", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/Antaris/RazorEngine" }, { "reference_url": "https://github.com/Antaris/RazorEngine/issues/585", "reference_id": "", "reference_type": "", "scores": [], "url": "https://github.com/Antaris/RazorEngine/issues/585" }, { "reference_url": "https://nvd.nist.gov/vuln/detail/CVE-2021-46703", "reference_id": "CVE-2021-46703", "reference_type": "", "scores": [], "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-46703" }, { "reference_url": "https://github.com/advisories/GHSA-ph3v-2hq5-5qfq", "reference_id": "GHSA-ph3v-2hq5-5qfq", "reference_type": "", "scores": [], "url": "https://github.com/advisories/GHSA-ph3v-2hq5-5qfq" } ], "weaknesses": [ { "cwe_id": 1336, "name": "Improper Neutralization of Special Elements Used in a Template Engine", "description": "The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine." }, { "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-z3eu-wjtb-ryf1" }