# CVE-2022-21158: A stored cross-site scripting vulnerability in marktext versions prior to v0.17.0 due to improper handling of the link (with javascript: sc…

- Severity: Medium 5.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- 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.53%, higher than 46% of CVEs (2026-12-02)
- Published: 2022-03-07T09:00:35.000Z
- Modified: 2026-06-17T04:25:38.917Z
- Weaknesses: CWE-79
- Assigned by: jpcert

## Description

A stored cross-site scripting vulnerability in marktext versions prior to v0.17.0 due to improper handling of the link (with javascript: scheme) inside the document may allow an attacker to execute an arbitrary script on the PC of the user using marktext.

(As written by CVE List.)

## Affected

- MarkText MarkText: versions prior to v0.17.0; before 0.17.0

## Every score

- NVD: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- NVD: CVSS:2.0 3.5 Low `AV:N/AC:M/Au:S/C:N/I:P/A:N`

## References

- <https://github.com/marktext/marktext/releases/tag/v0.17.0> (release-notes, third-party-advisory)
- <https://jvn.jp/en/jp/JVN89524240/index.html> (third-party-advisory, vdb-entry)

## Sources

- CVE List: [CVE-2022-21158](https://www.cve.org/CVERecord?id=CVE-2022-21158), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2022-21158](https://nvd.nist.gov/vuln/detail/CVE-2022-21158), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-21158 · Whole record: https://cve.day/CVE-2022-21158.json · Rebuilt by cve.day 2026-11-25T22:58:09.993Z
