CVE-2018-6341 (GCVE-0-2018-6341)
Vulnerability from cvelistv5
Published
2018-12-31 22:00
Modified
2025-05-06 16:54
CWE
  • CWE-79 - Improper Neutralization of Input During Web Page Generation ()
Summary
React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time. That lack of escaping could lead to a cross-site scripting vulnerability. This issue affected minor releases 16.0.x, 16.1.x, 16.2.x, 16.3.x, and 16.4.x. It was fixed in 16.0.1, 16.1.2, 16.2.1, 16.3.3, and 16.4.2.
Impacted products
Vendor Product Version
Facebook react-dom Version: 16.4.2
Version: 16.4.0   < unspecified
Version: 16.3.3
Version: 16.3.0   < unspecified
Version: 16.2.1
Version: 16.2.0   < unspecified
Version: 16.1.2
Version: 16.1.0   < unspecified
Version: 16.0.1
Version: 16.0.0   < unspecified
Patch: unspecified   < 16.0.0
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-05T06:01:48.794Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html"
          },
          {
            "tags": [
              "x_refsource_MISC",
              "x_transferred"
            ],
            "url": "https://twitter.com/reactjs/status/1024745321987887104"
          }
        ],
        "title": "CVE Program Container"
      },
      {
        "metrics": [
          {
            "cvssV3_1": {
              "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"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2018-6341",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2025-05-06T16:54:12.196558Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2025-05-06T16:54:17.932Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      }
    ],
    "cna": {
      "affected": [
        {
          "product": "react-dom",
          "vendor": "Facebook",
          "versions": [
            {
              "status": "affected",
              "version": "16.4.2"
            },
            {
              "lessThan": "unspecified",
              "status": "affected",
              "version": "16.4.0",
              "versionType": "custom"
            },
            {
              "status": "affected",
              "version": "16.3.3"
            },
            {
              "lessThan": "unspecified",
              "status": "affected",
              "version": "16.3.0",
              "versionType": "custom"
            },
            {
              "status": "affected",
              "version": "16.2.1"
            },
            {
              "lessThan": "unspecified",
              "status": "affected",
              "version": "16.2.0",
              "versionType": "custom"
            },
            {
              "status": "affected",
              "version": "16.1.2"
            },
            {
              "lessThan": "unspecified",
              "status": "affected",
              "version": "16.1.0",
              "versionType": "custom"
            },
            {
              "status": "affected",
              "version": "16.0.1"
            },
            {
              "lessThan": "unspecified",
              "status": "affected",
              "version": "16.0.0",
              "versionType": "custom"
            },
            {
              "lessThan": "16.0.0",
              "status": "unaffected",
              "version": "unspecified",
              "versionType": "custom"
            }
          ]
        }
      ],
      "dateAssigned": "2018-08-01T00:00:00.000Z",
      "datePublic": "2018-12-31T00:00:00.000Z",
      "descriptions": [
        {
          "lang": "en",
          "value": "React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time. That lack of escaping could lead to a cross-site scripting vulnerability. This issue affected minor releases 16.0.x, 16.1.x, 16.2.x, 16.3.x, and 16.4.x. It was fixed in 16.0.1, 16.1.2, 16.2.1, 16.3.3, and 16.4.2."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-79",
              "description": "Improper Neutralization of Input During Web Page Generation (CWE-79)",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2018-12-31T21:57:01.000Z",
        "orgId": "4fc57720-52fe-4431-a0fb-3d2c8747b827",
        "shortName": "facebook"
      },
      "references": [
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html"
        },
        {
          "tags": [
            "x_refsource_MISC"
          ],
          "url": "https://twitter.com/reactjs/status/1024745321987887104"
        }
      ],
      "x_legacyV4Record": {
        "CVE_data_meta": {
          "ASSIGNER": "cve-assign@fb.com",
          "DATE_ASSIGNED": "2018-08-01",
          "ID": "CVE-2018-6341",
          "STATE": "PUBLIC"
        },
        "affects": {
          "vendor": {
            "vendor_data": [
              {
                "product": {
                  "product_data": [
                    {
                      "product_name": "react-dom",
                      "version": {
                        "version_data": [
                          {
                            "version_affected": "!=\u003e",
                            "version_value": "16.4.2"
                          },
                          {
                            "version_affected": "\u003e=",
                            "version_value": "16.4.0"
                          },
                          {
                            "version_affected": "!=\u003e",
                            "version_value": "16.3.3"
                          },
                          {
                            "version_affected": "\u003e=",
                            "version_value": "16.3.0"
                          },
                          {
                            "version_affected": "!=\u003e",
                            "version_value": "16.2.1"
                          },
                          {
                            "version_affected": "\u003e=",
                            "version_value": "16.2.0"
                          },
                          {
                            "version_affected": "!=\u003e",
                            "version_value": "16.1.2"
                          },
                          {
                            "version_affected": "\u003e=",
                            "version_value": "16.1.0"
                          },
                          {
                            "version_affected": "!=\u003e",
                            "version_value": "16.0.1"
                          },
                          {
                            "version_affected": "\u003e=",
                            "version_value": "16.0.0"
                          },
                          {
                            "version_affected": "!\u003c",
                            "version_value": "16.0.0"
                          }
                        ]
                      }
                    }
                  ]
                },
                "vendor_name": "Facebook"
              }
            ]
          }
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "eng",
              "value": "React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time. That lack of escaping could lead to a cross-site scripting vulnerability. This issue affected minor releases 16.0.x, 16.1.x, 16.2.x, 16.3.x, and 16.4.x. It was fixed in 16.0.1, 16.1.2, 16.2.1, 16.3.3, and 16.4.2."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "eng",
                  "value": "Improper Neutralization of Input During Web Page Generation (CWE-79)"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html",
              "refsource": "MISC",
              "url": "https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html"
            },
            {
              "name": "https://twitter.com/reactjs/status/1024745321987887104",
              "refsource": "MISC",
              "url": "https://twitter.com/reactjs/status/1024745321987887104"
            }
          ]
        }
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "4fc57720-52fe-4431-a0fb-3d2c8747b827",
    "assignerShortName": "facebook",
    "cveId": "CVE-2018-6341",
    "datePublished": "2018-12-31T22:00:00.000Z",
    "dateReserved": "2018-01-26T00:00:00.000Z",
    "dateUpdated": "2025-05-06T16:54:17.932Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "nvd": "{\"cve\":{\"id\":\"CVE-2018-6341\",\"sourceIdentifier\":\"cve-assign@fb.com\",\"published\":\"2018-12-31T22:29:00.387\",\"lastModified\":\"2025-05-06T17:15:51.207\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time. That lack of escaping could lead to a cross-site scripting vulnerability. This issue affected minor releases 16.0.x, 16.1.x, 16.2.x, 16.3.x, and 16.4.x. It was fixed in 16.0.1, 16.1.2, 16.2.1, 16.3.3, and 16.4.2.\"},{\"lang\":\"es\",\"value\":\"Aplicaciones \\\"react\\\" que renderizaban a HTML mediante la API APIReactDOMServer no escapaban nombres de atributo proporcionados por el usuario a la hora de renderizar. Dicha falta de escape podr\u00eda provocar una vulnerabilidad de Cross-Site Scripting (XSS). Este problema afectaba a peque\u00f1as distribuciones: las versiones 16.0.x, 16.1.x, 16.2.x, 16.3.x y 16.4.x. Se solucion\u00f3 en las versiones 16.0.1, 16.1.2, 16.2.1, 16.3.3 y 16.4.2.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N\",\"baseScore\":6.1,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":2.7}],\"cvssMetricV30\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.0\",\"vectorString\":\"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N\",\"baseScore\":6.1,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"REQUIRED\",\"scope\":\"CHANGED\",\"confidentialityImpact\":\"LOW\",\"integrityImpact\":\"LOW\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":2.7}],\"cvssMetricV2\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"2.0\",\"vectorString\":\"AV:N/AC:M/Au:N/C:N/I:P/A:N\",\"baseScore\":4.3,\"accessVector\":\"NETWORK\",\"accessComplexity\":\"MEDIUM\",\"authentication\":\"NONE\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"PARTIAL\",\"availabilityImpact\":\"NONE\"},\"baseSeverity\":\"MEDIUM\",\"exploitabilityScore\":8.6,\"impactScore\":2.9,\"acInsufInfo\":false,\"obtainAllPrivilege\":false,\"obtainUserPrivilege\":false,\"obtainOtherPrivilege\":false,\"userInteractionRequired\":true}]},\"weaknesses\":[{\"source\":\"cve-assign@fb.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-79\"}]},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-79\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:facebook:react:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"16.0.0\",\"versionEndExcluding\":\"16.0.1\",\"matchCriteriaId\":\"2F2DBC72-D3BB-4F2E-8C4E-78338879F785\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:facebook:react:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"16.1.0\",\"versionEndExcluding\":\"16.1.2\",\"matchCriteriaId\":\"BFDC1FE0-32FA-4087-BAC9-8BE468C2C890\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:facebook:react:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"16.2.0\",\"versionEndExcluding\":\"16.2.1\",\"matchCriteriaId\":\"68B83811-5DEF-4C8D-A472-A2AB9B25AAB7\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:facebook:react:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"16.3.0\",\"versionEndExcluding\":\"16.3.3\",\"matchCriteriaId\":\"13B2835B-E9DB-49B7-9C1D-EFF8EDE1C367\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:facebook:react:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"16.4.0\",\"versionEndExcluding\":\"16.4.2\",\"matchCriteriaId\":\"AFEFCB3B-A978-457C-A26E-D1A818DE878D\"}]}]}],\"references\":[{\"url\":\"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\",\"source\":\"cve-assign@fb.com\",\"tags\":[\"Vendor Advisory\"]},{\"url\":\"https://twitter.com/reactjs/status/1024745321987887104\",\"source\":\"cve-assign@fb.com\",\"tags\":[\"Vendor Advisory\"]},{\"url\":\"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Vendor Advisory\"]},{\"url\":\"https://twitter.com/reactjs/status/1024745321987887104\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Vendor Advisory\"]}]}}",
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}, {\"url\": \"https://twitter.com/reactjs/status/1024745321987887104\", \"tags\": [\"x_refsource_MISC\", \"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-05T06:01:48.794Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"CHANGED\", \"version\": \"3.1\", \"baseScore\": 6.1, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N\", \"integrityImpact\": \"LOW\", \"userInteraction\": \"REQUIRED\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"LOW\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2018-6341\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-05-06T16:54:12.196558Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-05-06T16:53:23.979Z\"}}], \"cna\": {\"affected\": [{\"vendor\": \"Facebook\", \"product\": \"react-dom\", \"versions\": [{\"status\": \"affected\", \"version\": \"16.4.2\"}, {\"status\": \"affected\", \"version\": \"16.4.0\", \"lessThan\": \"unspecified\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"16.3.3\"}, {\"status\": \"affected\", \"version\": \"16.3.0\", \"lessThan\": \"unspecified\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"16.2.1\"}, {\"status\": \"affected\", \"version\": \"16.2.0\", \"lessThan\": \"unspecified\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"16.1.2\"}, {\"status\": \"affected\", \"version\": \"16.1.0\", \"lessThan\": \"unspecified\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"16.0.1\"}, {\"status\": \"affected\", \"version\": \"16.0.0\", \"lessThan\": \"unspecified\", \"versionType\": \"custom\"}, {\"status\": \"unaffected\", \"version\": \"unspecified\", \"lessThan\": \"16.0.0\", \"versionType\": \"custom\"}]}], \"datePublic\": \"2018-12-31T00:00:00.000Z\", \"references\": [{\"url\": \"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\", \"tags\": [\"x_refsource_MISC\"]}, {\"url\": \"https://twitter.com/reactjs/status/1024745321987887104\", \"tags\": [\"x_refsource_MISC\"]}], \"dateAssigned\": \"2018-08-01T00:00:00.000Z\", \"descriptions\": [{\"lang\": \"en\", \"value\": \"React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time. That lack of escaping could lead to a cross-site scripting vulnerability. This issue affected minor releases 16.0.x, 16.1.x, 16.2.x, 16.3.x, and 16.4.x. It was fixed in 16.0.1, 16.1.2, 16.2.1, 16.3.3, and 16.4.2.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-79\", \"description\": \"Improper Neutralization of Input During Web Page Generation (CWE-79)\"}]}], \"providerMetadata\": {\"orgId\": \"4fc57720-52fe-4431-a0fb-3d2c8747b827\", \"shortName\": \"facebook\", \"dateUpdated\": \"2018-12-31T21:57:01.000Z\"}, \"x_legacyV4Record\": {\"affects\": {\"vendor\": {\"vendor_data\": [{\"product\": {\"product_data\": [{\"version\": {\"version_data\": [{\"version_value\": \"16.4.2\", \"version_affected\": \"!=\u003e\"}, {\"version_value\": \"16.4.0\", \"version_affected\": \"\u003e=\"}, {\"version_value\": \"16.3.3\", \"version_affected\": \"!=\u003e\"}, {\"version_value\": \"16.3.0\", \"version_affected\": \"\u003e=\"}, {\"version_value\": \"16.2.1\", \"version_affected\": \"!=\u003e\"}, {\"version_value\": \"16.2.0\", \"version_affected\": \"\u003e=\"}, {\"version_value\": \"16.1.2\", \"version_affected\": \"!=\u003e\"}, {\"version_value\": \"16.1.0\", \"version_affected\": \"\u003e=\"}, {\"version_value\": \"16.0.1\", \"version_affected\": \"!=\u003e\"}, {\"version_value\": \"16.0.0\", \"version_affected\": \"\u003e=\"}, {\"version_value\": \"16.0.0\", \"version_affected\": \"!\u003c\"}]}, \"product_name\": \"react-dom\"}]}, \"vendor_name\": \"Facebook\"}]}}, \"data_type\": \"CVE\", \"references\": {\"reference_data\": [{\"url\": \"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\", \"name\": \"https://reactjs.org/blog/2018/08/01/react-v-16-4-2.html\", \"refsource\": \"MISC\"}, {\"url\": \"https://twitter.com/reactjs/status/1024745321987887104\", \"name\": \"https://twitter.com/reactjs/status/1024745321987887104\", \"refsource\": \"MISC\"}]}, \"data_format\": \"MITRE\", \"description\": {\"description_data\": [{\"lang\": \"eng\", \"value\": \"React applications which rendered to HTML using the ReactDOMServer API were not escaping user-supplied attribute names at render-time. That lack of escaping could lead to a cross-site scripting vulnerability. This issue affected minor releases 16.0.x, 16.1.x, 16.2.x, 16.3.x, and 16.4.x. It was fixed in 16.0.1, 16.1.2, 16.2.1, 16.3.3, and 16.4.2.\"}]}, \"problemtype\": {\"problemtype_data\": [{\"description\": [{\"lang\": \"eng\", \"value\": \"Improper Neutralization of Input During Web Page Generation (CWE-79)\"}]}]}, \"data_version\": \"4.0\", \"CVE_data_meta\": {\"ID\": \"CVE-2018-6341\", \"STATE\": \"PUBLIC\", \"ASSIGNER\": \"cve-assign@fb.com\", \"DATE_ASSIGNED\": \"2018-08-01\"}}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2018-6341\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-05-06T16:54:17.932Z\", \"dateReserved\": \"2018-01-26T00:00:00.000Z\", \"assignerOrgId\": \"4fc57720-52fe-4431-a0fb-3d2c8747b827\", \"datePublished\": \"2018-12-31T22:00:00.000Z\", \"assignerShortName\": \"facebook\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

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.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • 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.


Loading…

Loading…