gsd-2022-23515
Vulnerability from gsd
Modified
2022-12-13 00:00
Details
## Summary
Loofah `>= 2.1.0, < 2.19.1` is vulnerable to cross-site scripting via the `image/svg+xml` media type in data URIs.
## Mitigation
Upgrade to Loofah `>= 2.19.1`.
Aliases
Aliases
{ "GSD": { "alias": "CVE-2022-23515", "id": "GSD-2022-23515", "references": [ "https://www.suse.com/security/cve/CVE-2022-23515.html" ] }, "gsd": { "metadata": { "exploitCode": "unknown", "remediation": "unknown", "reportConfidence": "confirmed", "type": "vulnerability" }, "osvSchema": { "affected": [ { "package": { "ecosystem": "RubyGems", "name": "loofah", "purl": "pkg:gem/loofah" } } ], "aliases": [ "CVE-2022-23515", "GHSA-228g-948r-83gx" ], "details": "## Summary\n\nLoofah `\u003e= 2.1.0, \u003c 2.19.1` is vulnerable to cross-site scripting via the `image/svg+xml` media type in data URIs.\n\n## Mitigation\n\nUpgrade to Loofah `\u003e= 2.19.1`.\n", "id": "GSD-2022-23515", "modified": "2022-12-13T00:00:00.000Z", "published": "2022-12-13T00:00:00.000Z", "references": [ { "type": "WEB", "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx" }, { "type": "WEB", "url": "https://cwe.mitre.org/data/definitions/79.html" }, { "type": "WEB", "url": "https://github.com/w3c/svgwg/issues/266" }, { "type": "WEB", "url": "https://hackerone.com/reports/1694173" }, { "type": "WEB", "url": "https://github.com/flavorjones/loofah/issues/101" } ], "schema_version": "1.4.0", "severity": [ { "score": 6.1, "type": "CVSS_V3" } ], "summary": "Improper neutralization of data URIs may allow XSS in Loofah" } }, "namespaces": { "cve.org": { "CVE_data_meta": { "ASSIGNER": "security-advisories@github.com", "ID": "CVE-2022-23515", "STATE": "PUBLIC" }, "affects": { "vendor": { "vendor_data": [ { "product": { "product_data": [ { "product_name": "loofah", "version": { "version_data": [ { "version_affected": "=", "version_value": "\u003e= 2.1.0, \u003c 2.19.1" } ] } } ] }, "vendor_name": "flavorjones" } ] } }, "data_format": "MITRE", "data_type": "CVE", "data_version": "4.0", "description": { "description_data": [ { "lang": "eng", "value": "Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah \u003e= 2.1.0, \u003c 2.19.1 is vulnerable to cross-site scripting via the image/svg+xml media type in data URIs. This issue is patched in version 2.19.1." } ] }, "impact": { "cvss": [ { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.1, "baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "CHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1" } ] }, "problemtype": { "problemtype_data": [ { "description": [ { "cweId": "CWE-79", "lang": "eng", "value": "CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)" } ] } ] }, "references": { "reference_data": [ { "name": "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx", "refsource": "MISC", "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx" }, { "name": "https://github.com/flavorjones/loofah/issues/101", "refsource": "MISC", "url": "https://github.com/flavorjones/loofah/issues/101" }, { "name": "https://hackerone.com/reports/1694173", "refsource": "MISC", "url": "https://hackerone.com/reports/1694173" }, { "name": "https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html", "refsource": "MISC", "url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html" } ] }, "source": { "advisory": "GHSA-228g-948r-83gx", "discovery": "UNKNOWN" } }, "github.com/rubysec/ruby-advisory-db": { "cve": "2022-23515", "cvss_v3": 6.1, "date": "2022-12-13", "description": "## Summary\n\nLoofah `\u003e= 2.1.0, \u003c 2.19.1` is vulnerable to cross-site scripting via the `image/svg+xml` media type in data URIs.\n\n## Mitigation\n\nUpgrade to Loofah `\u003e= 2.19.1`.\n", "gem": "loofah", "ghsa": "228g-948r-83gx", "patched_versions": [ "\u003e= 2.19.1" ], "related": { "url": [ "https://cwe.mitre.org/data/definitions/79.html", "https://github.com/w3c/svgwg/issues/266", "https://hackerone.com/reports/1694173", "https://github.com/flavorjones/loofah/issues/101" ] }, "title": "Improper neutralization of data URIs may allow XSS in Loofah", "unaffected_versions": [ "\u003c 2.1.0" ], "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx" }, "gitlab.com": { "advisories": [ { "affected_range": "\u003e=2.1.0 \u003c2.19.1", "affected_versions": "All versions starting from 2.1.0 before 2.19.1", "cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "cwe_ids": [ "CWE-1035", "CWE-79", "CWE-937" ], "date": "2022-12-19", "description": "Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah \u003e= 2.1.0, \u003c 2.19.1 is vulnerable to cross-site scripting via the image/svg+xml media type in data URIs. This issue is patched in version 2.19.1.", "fixed_versions": [ "2.19.1" ], "identifier": "CVE-2022-23515", "identifiers": [ "CVE-2022-23515", "GHSA-228g-948r-83gx", "GMS-2022-8287" ], "not_impacted": "All versions before 2.1.0, all versions starting from 2.19.1", "package_slug": "gem/loofah", "pubdate": "2022-12-14", "solution": "Upgrade to version 2.19.1 or above.", "title": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)", "urls": [ "https://nvd.nist.gov/vuln/detail/CVE-2022-23515", "https://hackerone.com/reports/1694173", "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx", "https://github.com/flavorjones/loofah/issues/101", "https://github.com/w3c/svgwg/issues/266", "https://github.com/flavorjones/loofah/commit/415677f3cf7f9254f42f811e784985cd63c7407f", "https://github.com/advisories/GHSA-228g-948r-83gx" ], "uuid": "6cdda082-d08a-4698-baa1-2c98cc767a8f" }, { "affected_range": "\u003c0", "affected_versions": "All versions starting from 2.1.0 before 2.19.1", "cwe_ids": [ "CWE-1035", "CWE-937" ], "date": "2022-12-13", "description": "## Summary\n\nLoofah `\u003e= 2.1.0, \u003c 2.19.1` is vulnerable to cross-site scripting via the `image/svg+xml` media type in data URIs.\n\n\n## Mitigation\n\nUpgrade to Loofah `\u003e= 2.19.1`.\n\n\n## Severity\n\nThe Loofah maintainers have evaluated this as [Medium Severity 6.1](https://www.first.org/cvss/calculator/3.0#.\n\n\n## References\n\n- [CWE - CWE-79: Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027) (4.9)](https://cwe.mitre.org/data/definitions/79.html)\n- [SVG MIME Type (image/svg+xml) is misleading to developers \u00b7 Issue #266 \u00b7 w3c/svgwg](https://github.com/w3c/svgwg/issues/266)\n- https://hackerone.com/reports/1694173\n- https://github.com/flavorjones/loofah/issues/101\n\n## Credit\n\nThis vulnerability was responsibly reported by Maciej Piechota (@haqpl).", "fixed_versions": [ "2.19.1" ], "identifier": "GMS-2022-8287", "identifiers": [ "GHSA-228g-948r-83gx", "GMS-2022-8287", "CVE-2022-23515" ], "not_impacted": "All versions before 2.1.0, all versions starting from 2.19.1", "package_slug": "gem/loofah", "pubdate": "2022-12-13", "solution": "Upgrade to version 2.19.1 or above.", "title": "Duplicate of ./gem/loofah/CVE-2022-23515.yml", "urls": [ "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx", "https://github.com/flavorjones/loofah/issues/101", "https://github.com/w3c/svgwg/issues/266", "https://github.com/flavorjones/loofah/commit/415677f3cf7f9254f42f811e784985cd63c7407f", "https://hackerone.com/reports/1694173", "https://github.com/advisories/GHSA-228g-948r-83gx" ], "uuid": "e3c8dff9-cf5d-4736-abc8-3a397689675b" } ] }, "nvd.nist.gov": { "cve": { "configurations": [ { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:a:loofah_project:loofah:*:*:*:*:*:ruby:*:*", "matchCriteriaId": "68F8B0CB-F78F-410C-942F-7FA80481474D", "versionEndExcluding": "2.19.1", "versionStartIncluding": "2.1.0", "vulnerable": true } ], "negate": false, "operator": "OR" } ] }, { "nodes": [ { "cpeMatch": [ { "criteria": "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*", "matchCriteriaId": "07B237A9-69A3-4A9C-9DA0-4E06BD37AE73", "vulnerable": true } ], "negate": false, "operator": "OR" } ] } ], "descriptions": [ { "lang": "en", "value": "Loofah is a general library for manipulating and transforming HTML/XML documents and fragments, built on top of Nokogiri. Loofah \u003e= 2.1.0, \u003c 2.19.1 is vulnerable to cross-site scripting via the image/svg+xml media type in data URIs. This issue is patched in version 2.19.1." }, { "lang": "es", "value": "Loofah es una librer\u00eda general para manipular y transformar documentos y fragmentos HTML / XML, construida sobre Nokogiri. Loofah \u0026gt;= 2.1.0, \u0026lt; 2.19.1 es vulnerable a Cross-Site Scripting (XSS) a trav\u00e9s del tipo de medio image/svg+xml en las URI de datos. Este problema est\u00e1 parcheado en la versi\u00f3n 2.19.1." } ], "id": "CVE-2022-23515", "lastModified": "2024-02-01T16:11:55.370", "metrics": { "cvssMetricV31": [ { "cvssData": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.1, "baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "CHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1" }, "exploitabilityScore": 2.8, "impactScore": 2.7, "source": "nvd@nist.gov", "type": "Primary" }, { "cvssData": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "NONE", "baseScore": 6.1, "baseSeverity": "MEDIUM", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "privilegesRequired": "NONE", "scope": "CHANGED", "userInteraction": "REQUIRED", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N", "version": "3.1" }, "exploitabilityScore": 2.8, "impactScore": 2.7, "source": "security-advisories@github.com", "type": "Secondary" } ] }, "published": "2022-12-14T14:15:10.553", "references": [ { "source": "security-advisories@github.com", "tags": [ "Issue Tracking", "Third Party Advisory" ], "url": "https://github.com/flavorjones/loofah/issues/101" }, { "source": "security-advisories@github.com", "tags": [ "Third Party Advisory" ], "url": "https://github.com/flavorjones/loofah/security/advisories/GHSA-228g-948r-83gx" }, { "source": "security-advisories@github.com", "tags": [ "Permissions Required", "Third Party Advisory" ], "url": "https://hackerone.com/reports/1694173" }, { "source": "security-advisories@github.com", "tags": [ "Mailing List", "Third Party Advisory" ], "url": "https://lists.debian.org/debian-lts-announce/2023/09/msg00011.html" } ], "sourceIdentifier": "security-advisories@github.com", "vulnStatus": "Analyzed", "weaknesses": [ { "description": [ { "lang": "en", "value": "CWE-79" } ], "source": "security-advisories@github.com", "type": "Primary" } ] } } } }
Loading...
Loading...
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.