{"answers":{"affected":"12 open source packages ship an affected version, including TinyMCE, tinymce/tinymce and tinymce. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-45818 in the wild and no public exploit code.","fix":"Upgrade TinyMCE to a fixed version for your release line: 5.10.8 or 6.7.1.","what":"CVE-2023-45818 is a medium-severity cross-site scripting vulnerability in tinymce, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-45818 and fix it if it is affected.\n\nWhat it is: CVE-2023-45818 is a medium-severity cross-site scripting vulnerability in tinymce, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-45818 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- TinyMCE (NuGet): affected all versions; fixed in 5.10.8\n- TinyMCE (NuGet): affected all versions; fixed in 5.10.8\n- TinyMCE (NuGet): affected from 6.0.0; fixed in 6.7.1\n- TinyMCE (NuGet): affected from 6.0.0; fixed in 6.7.1\n- tinymce/tinymce (Packagist): affected all versions; fixed in 5.10.8\n- tinymce/tinymce (Packagist): affected all versions; fixed in 5.10.8\n- tinymce/tinymce (Packagist): affected from 6.0.0; fixed in 6.7.1\n- tinymce/tinymce (Packagist): affected from 6.0.0; fixed in 6.7.1\n- tinymce (npm): affected all versions; fixed in 5.10.8\n- tinymce (npm): affected all versions; fixed in 5.10.8\n- tinymce (npm): affected from 6.0.0; fixed in 6.7.1\n- tinymce (npm): affected from 6.0.0; fixed in 6.7.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-45818/ (Markdown: https://insights.sbomify.com/CVE-2023-45818/index.md)","id":"CVE-2023-45818","markdown":"https://insights.sbomify.com/CVE-2023-45818/index.md","name":"CVE-2023-45818","record":{"aliases":["GHSA-v65r-p3vv-jjfv","UBUNTU-CVE-2023-45818"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"TinyMCE rich text editor","requires_auth":"none","summary":"Attackers can execute arbitrary JavaScript via mutation XSS in TinyMCE's undo/redo functionality, requiring users to upgrade the library.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"tinymce","vendor":"tiny"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"TinyMCE is an open source rich text editor. A mutation cross-site scripting (mXSS) vulnerability was discovered in TinyMCE’s core undo and redo functionality. When a carefully-crafted HTML snippet passes the XSS sanitisation layer, it is manipulated as a string by internal trimming functions before being stored in the undo stack. If the HTML snippet is restored from the undo stack, the combination of the string manipulation and reparative parsing by either the browser's native [DOMParser API](https://developer.mozilla.org/en-US/docs/Web/API/DOMParser) (TinyMCE 6) or the SaxParser API (TinyMCE 5) mutates the HTML maliciously, allowing an XSS payload to be executed. This vulnerability has been patched in TinyMCE 5.10.8 and TinyMCE 6.7.1 by ensuring HTML is trimmed using node-level manipulation instead of string manipulation. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["NuGet","Packagist","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cross-site Scripting vulnerability in TinyMCE undo/redo, getContent API, resetContent API, and Autosave plugin","id":"CVE-2023-45818","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"NuGet","product":null,"products":[],"type":"xss","year":"2023"},"n_packages":12,"n_references":5,"next":{"headline":"Cross-site Scripting vulnerability in TinyMCE notificationManager.open API","id":"CVE-2023-45819"},"packages":[{"ecosystem":"NuGet","fixed":["5.10.8"],"introduced":["0"],"last_affected":[],"package":"TinyMCE","purl":null,"source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"NuGet","fixed":["5.10.8"],"introduced":["0"],"last_affected":[],"package":"TinyMCE","purl":"pkg:nuget/TinyMCE","source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"NuGet","fixed":["6.7.1"],"introduced":["6.0.0"],"last_affected":[],"package":"TinyMCE","purl":null,"source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"NuGet","fixed":["6.7.1"],"introduced":["6.0.0"],"last_affected":[],"package":"TinyMCE","purl":"pkg:nuget/TinyMCE","source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"Packagist","fixed":["5.10.8"],"introduced":["0"],"last_affected":[],"package":"tinymce/tinymce","purl":null,"source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"Packagist","fixed":["5.10.8"],"introduced":["0"],"last_affected":[],"package":"tinymce/tinymce","purl":"pkg:composer/tinymce/tinymce","source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"Packagist","fixed":["6.7.1"],"introduced":["6.0.0"],"last_affected":[],"package":"tinymce/tinymce","purl":null,"source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"Packagist","fixed":["6.7.1"],"introduced":["6.0.0"],"last_affected":[],"package":"tinymce/tinymce","purl":"pkg:composer/tinymce/tinymce","source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"npm","fixed":["5.10.8"],"introduced":["0"],"last_affected":[],"package":"tinymce","purl":null,"source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"npm","fixed":["5.10.8"],"introduced":["0"],"last_affected":[],"package":"tinymce","purl":"pkg:npm/tinymce","source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"npm","fixed":["6.7.1"],"introduced":["6.0.0"],"last_affected":[],"package":"tinymce","purl":null,"source":"GHSA-v65r-p3vv-jjfv"},{"ecosystem":"npm","fixed":["6.7.1"],"introduced":["6.0.0"],"last_affected":[],"package":"tinymce","purl":"pkg:npm/tinymce","source":"GHSA-v65r-p3vv-jjfv"}],"prev":{"headline":"Unread bookmark reminder notifications that the user cannot access can be seen","id":"CVE-2023-45816"},"products":["tinymce"],"published":"2023-10-19","related":[{"cvss_score":8.7,"headline":"TinyMCE Cross-Site Scripting (XSS) vulnerability using through data-mce- prefixed src, href, style attributes","id":"CVE-2026-47759","kev_date_added":null,"published":"2026-05-28"},{"cvss_score":8.7,"headline":"TinyMCE Cross-Site Scripting (XSS) vulnerability using sanitization bypass through nested SVGs","id":"CVE-2026-47760","kev_date_added":null,"published":"2026-05-28"},{"cvss_score":8.7,"headline":"TinyMCE Cross-Site Scripting (XSS) vulnerability using media plugin `data-mce-object` injection","id":"CVE-2026-47761","kev_date_added":null,"published":"2026-05-28"},{"cvss_score":8.7,"headline":"TinyMCE Cross-Site Scripting (XSS) vulnerability through `mce:protected` comments","id":"CVE-2026-47762","kev_date_added":null,"published":"2026-05-28"},{"cvss_score":6.1,"headline":"Cross-site scripting vulnerability in TinyMCE","id":"CVE-2024-21908","kev_date_added":null,"published":"2024-01-03"},{"cvss_score":6.1,"headline":"Cross-site scripting vulnerability in TinyMCE plugins","id":"CVE-2024-21910","kev_date_added":null,"published":"2024-01-03"},{"cvss_score":6.1,"headline":"Cross-site scripting vulnerability in TinyMCE","id":"CVE-2024-21911","kev_date_added":null,"published":"2024-01-03"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-12","vendors":["tinymce"]},"summary":"Attackers can execute arbitrary JavaScript via mutation XSS in TinyMCE's undo/redo functionality, requiring users to upgrade the library.","url":"https://insights.sbomify.com/CVE-2023-45818/"}