# CVE-2026-66921: Pivotick - Stored DOM-Based Cross-Site Scripting via Unescaped Markdown Node References

- Severity: Medium 6.3 (CVSS:4.0, scored by CIRCL) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:L/VA:N/SC:N/SI:H/SA:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2026-07-28T13:05:19.166Z
- Modified: 2026-10-24T13:10:00.147Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: CIRCL

## Description

Pivotick’s Markdown node-reference renderer failed to HTML-escape the attacker-controlled nodeName value before interpolating it into both the data-node-name attribute and the body of a generated <span> element.

Because the node-reference tokenizer rejected only square brackets, a crafted node name could still contain quotation marks, angle brackets, or other HTML metacharacters. An attacker could therefore terminate the quoted attribute or inject additional HTML elements and event-handler attributes.

When malicious node-reference content is rendered by a consumer that does not apply DOMPurify or equivalent sanitization, arbitrary JavaScript may execute in the victim’s browser in the security context of the application. Successful exploitation requires a victim to open or render a crafted graph or note and could allow the attacker to access same-origin information, modify displayed content, or perform actions using the victim’s session.

The patch resolves the issue by applying context-appropriate HTML escaping to node names before inserting them into either HTML text or quoted attribute values. The shared escaping function now encodes ampersands, angle brackets, and both types of quotation marks.

(As written by CVE List.)

## Affected

- pivotick pivotick: up to 1.4.0

## References

- <https://github.com/Pivotick/Pivotick/commit/4c13ff2b0ec769881b5526feddef37c0c5a08885> (patch)

## Sources

- CVE List: [CVE-2026-66921](https://www.cve.org/CVERecord?id=CVE-2026-66921), CVE Terms of Use, modified 2026-07-28
- NVD: [CVE-2026-66921](https://nvd.nist.gov/vuln/detail/CVE-2026-66921), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-66921 · Whole record: https://cve.day/CVE-2026-66921.json · Rebuilt by cve.day 2026-11-25T22:59:30.334Z
