{"cve":"CVE-2025-21610","nvd":{"published":"2025-01-03T17:15:09.290","modified":"2026-06-17T08:43:50.980","status":"Deferred","description":"Trix is a what-you-see-is-what-you-get rich text editor for everyday writing. Versions prior to 2.1.12 are vulnerable to cross-site scripting when pasting malicious code in the link field. An attacker could trick the user to copy&paste a malicious `javascript:` URL as a link that would execute arbitrary JavaScript code within the context of the user's session, potentially leading to unauthorized actions being performed or sensitive information being disclosed. Users should upgrade to Trix editor version 2.1.12 or later to receive a patch. In addition to upgrading, affected users can disallow browsers that don't support a Content Security Policy (CSP) as a workaround for this and other cross-site scripting vulnerabilities. Set CSP policies such as script-src 'self' to ensure that only scripts hosted on the same origin are executed, and explicitly prohibit inline scripts using script-src-elem.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N","score":5.3},"cwes":["CWE-79"],"references":["https://gist.github.com/th4s1s/3921fd9c3e324ad9a3e0d846166e3eb8","https://github.com/basecamp/trix/commit/180c8d337f18e1569cea6ef29b4d03ffff5b5faa","https://github.com/basecamp/trix/commit/c4f0d6f80654603932af6685694f694e96593b93","https://github.com/basecamp/trix/security/advisories/GHSA-j386-3444-qgwg"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:57:56.913276502+00:00"},"epss":{"cve":"CVE-2025-21610","score":0.00421,"percentile":0.36493,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-j386-3444-qgwg","url":"https://osv.dev/vulnerability/GHSA-j386-3444-qgwg","summary":"Trix allows Cross-site Scripting via `javascript:` url in a link","modified":"2025-01-03T19:26:14Z","packages":[{"ecosystem":"npm","name":"trix","purl":"pkg:npm/trix","ranges":["<2.1.12"],"fixed":["2.1.12"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}