GSD-2023-25572
Vulnerability from gsd - Updated: 2023-12-13 01:20Details
react-admin is a frontend framework for building browser applications on top of REST/GraphQL APIs. react-admin prior to versions 3.19.12 and 4.7.6, along with ra-ui-materialui prior to 3.19.12 and 4.7.6, are vulnerable to cross-site scripting. All React applications built with react-admin and using the `<RichTextField>` are affected. `<RichTextField>` outputs the field value using `dangerouslySetInnerHTML` without client-side sanitization. If the data isn't sanitized server-side, this opens a possible cross-site scripting (XSS) attack. Versions 3.19.12 and 4.7.6 now use `DOMPurify` to escape the HTML before outputting it with React and `dangerouslySetInnerHTML`. Users who already sanitize HTML data server-side do not need to upgrade. As a workaround, users may replace the `<RichTextField>` by a custom field doing sanitization by hand.
Aliases
Aliases
{
"GSD": {
"alias": "CVE-2023-25572",
"id": "GSD-2023-25572"
},
"gsd": {
"metadata": {
"exploitCode": "unknown",
"remediation": "unknown",
"reportConfidence": "confirmed",
"type": "vulnerability"
},
"osvSchema": {
"aliases": [
"CVE-2023-25572"
],
"details": "react-admin is a frontend framework for building browser applications on top of REST/GraphQL APIs. react-admin prior to versions 3.19.12 and 4.7.6, along with ra-ui-materialui prior to 3.19.12 and 4.7.6, are vulnerable to cross-site scripting. All React applications built with react-admin and using the `\u003cRichTextField\u003e` are affected. `\u003cRichTextField\u003e` outputs the field value using `dangerouslySetInnerHTML` without client-side sanitization. If the data isn\u0027t sanitized server-side, this opens a possible cross-site scripting (XSS) attack. Versions 3.19.12 and 4.7.6 now use `DOMPurify` to escape the HTML before outputting it with React and `dangerouslySetInnerHTML`. Users who already sanitize HTML data server-side do not need to upgrade. As a workaround, users may replace the `\u003cRichTextField\u003e` by a custom field doing sanitization by hand.",
"id": "GSD-2023-25572",
"modified": "2023-12-13T01:20:40.004009Z",
"schema_version": "1.4.0"
}
},
"namespaces": {
"cve.org": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2023-25572",
"STATE": "PUBLIC"
},
"affects": {
"vendor": {
"vendor_data": [
{
"product": {
"product_data": [
{
"product_name": "react-admin",
"version": {
"version_data": [
{
"version_affected": "=",
"version_value": "\u003c 3.19.12"
},
{
"version_affected": "=",
"version_value": "\u003e= 4.0.0, \u003c 4.7.6"
}
]
}
}
]
},
"vendor_name": "marmelab"
}
]
}
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "eng",
"value": "react-admin is a frontend framework for building browser applications on top of REST/GraphQL APIs. react-admin prior to versions 3.19.12 and 4.7.6, along with ra-ui-materialui prior to 3.19.12 and 4.7.6, are vulnerable to cross-site scripting. All React applications built with react-admin and using the `\u003cRichTextField\u003e` are affected. `\u003cRichTextField\u003e` outputs the field value using `dangerouslySetInnerHTML` without client-side sanitization. If the data isn\u0027t sanitized server-side, this opens a possible cross-site scripting (XSS) attack. Versions 3.19.12 and 4.7.6 now use `DOMPurify` to escape the HTML before outputting it with React and `dangerouslySetInnerHTML`. Users who already sanitize HTML data server-side do not need to upgrade. As a workaround, users may replace the `\u003cRichTextField\u003e` by a custom field doing sanitization by hand."
}
]
},
"impact": {
"cvss": [
{
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 5.4,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "LOW",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/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/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v",
"refsource": "MISC",
"url": "https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v"
},
{
"name": "https://github.com/marmelab/react-admin/pull/8644",
"refsource": "MISC",
"url": "https://github.com/marmelab/react-admin/pull/8644"
},
{
"name": "https://github.com/marmelab/react-admin/pull/8645",
"refsource": "MISC",
"url": "https://github.com/marmelab/react-admin/pull/8645"
},
{
"name": "https://github.com/marmelab/react-admin/releases/tag/v3.19.12",
"refsource": "MISC",
"url": "https://github.com/marmelab/react-admin/releases/tag/v3.19.12"
},
{
"name": "https://github.com/marmelab/react-admin/releases/tag/v4.7.6",
"refsource": "MISC",
"url": "https://github.com/marmelab/react-admin/releases/tag/v4.7.6"
}
]
},
"source": {
"advisory": "GHSA-5jcr-82fh-339v",
"discovery": "UNKNOWN"
}
},
"gitlab.com": {
"advisories": [
{
"affected_range": "\u003c3.9.12||\u003e=4.0.0 \u003c4.7.6",
"affected_versions": "All versions before 3.9.12, all versions starting from 4.0.0 before 4.7.6",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-79",
"CWE-937"
],
"date": "2023-02-22",
"description": "react-admin is a frontend framework for building browser applications on top of REST/GraphQL APIs. react-admin prior to versions 3.19.12 and 4.7.6, along with ra-ui-materialui prior to 3.19.12 and 4.7.6, is vulnerable to cross-site scripting. All React applications built with react-admin and using the `\u003cRichTextField\u003e` are affected. `\u003cRichTextField\u003e` outputs the field value using `dangerouslySetInnerHTML` without client-side sanitization. If the data isn\u0027t sanitized server-side, this opens a possible cross-site scripting (XSS) attack. Versions 3.19.12 and 4.7.6 now use `DOMPurify` to escape the HTML before outputting it with React and `dangerouslySetInnerHTML`. Users who already sanitize HTML data server-side do not need to upgrade. As a workaround, users may replace the `\u003cRichTextField\u003e` by a custom field doing sanitization by hand.",
"fixed_versions": [
"3.10.0",
"4.7.6"
],
"identifier": "CVE-2023-25572",
"identifiers": [
"CVE-2023-25572",
"GHSA-5jcr-82fh-339v"
],
"not_impacted": "All versions starting from 3.9.12 before 4.0.0, all versions starting from 4.7.6",
"package_slug": "npm/ra-ui-materialui",
"pubdate": "2023-02-13",
"solution": "Upgrade to versions 3.10.0, 4.7.6 or above.",
"title": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"urls": [
"https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v",
"https://nvd.nist.gov/vuln/detail/CVE-2023-25572",
"https://github.com/marmelab/react-admin/pull/8644",
"https://github.com/marmelab/react-admin/pull/8645",
"https://github.com/marmelab/react-admin/releases/tag/v3.19.12",
"https://github.com/marmelab/react-admin/releases/tag/v4.7.6",
"https://github.com/advisories/GHSA-5jcr-82fh-339v"
],
"uuid": "0d798ce6-3037-4443-a332-06d6b1dd4a67"
},
{
"affected_range": "\u003c3.9.12||\u003e=4.0.0 \u003c4.7.6",
"affected_versions": "All versions before 3.9.12, all versions starting from 4.0.0 before 4.7.6",
"cvss_v3": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"cwe_ids": [
"CWE-1035",
"CWE-79",
"CWE-937"
],
"date": "2023-02-22",
"description": "react-admin is a frontend framework for building browser applications on top of REST/GraphQL APIs. react-admin prior to versions 3.19.12 and 4.7.6, along with ra-ui-materialui prior to 3.19.12 and 4.7.6, is vulnerable to cross-site scripting. All React applications built with react-admin and using the `\u003cRichTextField\u003e` are affected. `\u003cRichTextField\u003e` outputs the field value using `dangerouslySetInnerHTML` without client-side sanitization. If the data isn\u0027t sanitized server-side, this opens a possible cross-site scripting (XSS) attack. Versions 3.19.12 and 4.7.6 now use `DOMPurify` to escape the HTML before outputting it with React and `dangerouslySetInnerHTML`. Users who already sanitize HTML data server-side do not need to upgrade. As a workaround, users may replace the `\u003cRichTextField\u003e` by a custom field doing sanitization by hand.",
"fixed_versions": [
"3.10.0",
"4.7.6"
],
"identifier": "CVE-2023-25572",
"identifiers": [
"CVE-2023-25572",
"GHSA-5jcr-82fh-339v"
],
"not_impacted": "All versions starting from 3.9.12 before 4.0.0, all versions starting from 4.7.6",
"package_slug": "npm/react-admin",
"pubdate": "2023-02-13",
"solution": "Upgrade to versions 3.10.0, 4.7.6 or above.",
"title": "Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)",
"urls": [
"https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v",
"https://nvd.nist.gov/vuln/detail/CVE-2023-25572",
"https://github.com/marmelab/react-admin/pull/8644",
"https://github.com/marmelab/react-admin/pull/8645",
"https://github.com/marmelab/react-admin/releases/tag/v3.19.12",
"https://github.com/marmelab/react-admin/releases/tag/v4.7.6",
"https://github.com/advisories/GHSA-5jcr-82fh-339v"
],
"uuid": "8626b7d5-8f04-444c-8260-88fec82d009a"
}
]
},
"nvd.nist.gov": {
"configurations": {
"CVE_data_version": "4.0",
"nodes": [
{
"children": [],
"cpe_match": [
{
"cpe23Uri": "cpe:2.3:a:marmelab:react-admin:*:*:*:*:*:node.js:*:*",
"cpe_name": [],
"versionEndExcluding": "4.7.6",
"versionStartIncluding": "4.0.0",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:marmelab:react-admin:*:*:*:*:*:node.js:*:*",
"cpe_name": [],
"versionEndExcluding": "3.9.12",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:marmelab:ra-ui-materialui:*:*:*:*:*:node.js:*:*",
"cpe_name": [],
"versionEndExcluding": "3.9.12",
"vulnerable": true
},
{
"cpe23Uri": "cpe:2.3:a:marmelab:ra-ui-materialui:*:*:*:*:*:node.js:*:*",
"cpe_name": [],
"versionEndExcluding": "4.7.6",
"versionStartIncluding": "4.0.0",
"vulnerable": true
}
],
"operator": "OR"
}
]
},
"cve": {
"CVE_data_meta": {
"ASSIGNER": "security-advisories@github.com",
"ID": "CVE-2023-25572"
},
"data_format": "MITRE",
"data_type": "CVE",
"data_version": "4.0",
"description": {
"description_data": [
{
"lang": "en",
"value": "react-admin is a frontend framework for building browser applications on top of REST/GraphQL APIs. react-admin prior to versions 3.19.12 and 4.7.6, along with ra-ui-materialui prior to 3.19.12 and 4.7.6, are vulnerable to cross-site scripting. All React applications built with react-admin and using the `\u003cRichTextField\u003e` are affected. `\u003cRichTextField\u003e` outputs the field value using `dangerouslySetInnerHTML` without client-side sanitization. If the data isn\u0027t sanitized server-side, this opens a possible cross-site scripting (XSS) attack. Versions 3.19.12 and 4.7.6 now use `DOMPurify` to escape the HTML before outputting it with React and `dangerouslySetInnerHTML`. Users who already sanitize HTML data server-side do not need to upgrade. As a workaround, users may replace the `\u003cRichTextField\u003e` by a custom field doing sanitization by hand."
}
]
},
"problemtype": {
"problemtype_data": [
{
"description": [
{
"lang": "en",
"value": "CWE-79"
}
]
}
]
},
"references": {
"reference_data": [
{
"name": "https://github.com/marmelab/react-admin/releases/tag/v4.7.6",
"refsource": "MISC",
"tags": [
"Release Notes"
],
"url": "https://github.com/marmelab/react-admin/releases/tag/v4.7.6"
},
{
"name": "https://github.com/marmelab/react-admin/pull/8645",
"refsource": "MISC",
"tags": [
"Patch"
],
"url": "https://github.com/marmelab/react-admin/pull/8645"
},
{
"name": "https://github.com/marmelab/react-admin/pull/8644",
"refsource": "MISC",
"tags": [
"Exploit",
"Patch"
],
"url": "https://github.com/marmelab/react-admin/pull/8644"
},
{
"name": "https://github.com/marmelab/react-admin/releases/tag/v3.19.12",
"refsource": "MISC",
"tags": [
"Release Notes"
],
"url": "https://github.com/marmelab/react-admin/releases/tag/v3.19.12"
},
{
"name": "https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v",
"refsource": "MISC",
"tags": [
"Exploit",
"Mitigation",
"Vendor Advisory"
],
"url": "https://github.com/marmelab/react-admin/security/advisories/GHSA-5jcr-82fh-339v"
}
]
}
},
"impact": {
"baseMetricV3": {
"cvssV3": {
"attackComplexity": "LOW",
"attackVector": "NETWORK",
"availabilityImpact": "NONE",
"baseScore": 5.4,
"baseSeverity": "MEDIUM",
"confidentialityImpact": "LOW",
"integrityImpact": "LOW",
"privilegesRequired": "LOW",
"scope": "CHANGED",
"userInteraction": "REQUIRED",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"version": "3.1"
},
"exploitabilityScore": 2.3,
"impactScore": 2.7
}
},
"lastModifiedDate": "2023-02-22T20:12Z",
"publishedDate": "2023-02-13T21:15Z"
}
}
}
Loading…
Loading…
Experimental. This forecast is provided for visualization only and may change without notice. Do not use it for operational decisions.
Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Loading…
Loading…