Repository navigation
Conversation
|
Edit: Seems like my fix won't allow for link pasting now that I've just tried it. I'll have to see what is happening with that. |
| } else { | ||
| const span = document.createElement('span') | ||
| span.innerHTML = text | ||
| span.innerHTML = sanitize(title, PREVIEW_DOMPURIFY_CONFIG, true) |
There was a problem hiding this comment.
One question: shouldn't the text where the title is? for example sanitize(text, PREVIEW_DOMPURIFY_CONFIG, true)?
|
@Teloshav pls resolve the conflicts |
|
This project recently merged a large refactor (electron-vite migration, PR #4001) that upgraded dependencies and fixed several issues. Please review this PR and let us know if it is still needed, or if the changes have already been addressed upstream.
|
|
Thank you for the contribution and for reporting CVE-2023-2318. After review, this change is no longer needed: pasted HTML is already sanitized via DOMPurify in Closing for now to keep the PR queue tidy. If you find a sanitization gap on the current |
Description
In ticket #3618 there was a DOM-based XSS which allowed "arbitrary JavaScript code to run in the context of MarkText main window." (quoted from @chromium1337, the author of ticket #3618), I also updated caniuse-lite while getting the build to work, not exactly sure what that does; but there you go! 😁
Edit: Seems like my fix won't allow for link pasting now that I've just tried it. I'll have to see what is happening with that.