Skip to content

fix: validate CSS color values in painter feature#2281

Closed
MatrixNeoKozak wants to merge 1 commit into
AprilSylph:masterfrom
MatrixNeoKozak:fix/improvement-1781094942156
Closed

fix: validate CSS color values in painter feature#2281
MatrixNeoKozak wants to merge 1 commit into
AprilSylph:masterfrom
MatrixNeoKozak:fix/improvement-1781094942156

Conversation

@MatrixNeoKozak

Copy link
Copy Markdown

The painter feature directly utilizes user-defined color preferences to construct CSS border-image-source properties without validation. This makes the application susceptible to potential CSS injection if malformed or malicious color strings are injected into the extension storage (e.g., via the import/export functionality). This PR introduces a validation step using CSS.supports() to ensure only valid CSS color strings are processed and applied to the DOM.

Repository owner locked as spam and limited conversation to collaborators Jun 10, 2026
@AprilSylph AprilSylph closed this Jun 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants