Skip to content

security: harden highlight directive against html injection#760

Open
lhy8888 wants to merge 1 commit intoveops:masterfrom
lhy8888:codex/sec-ui-highlight-xss
Open

security: harden highlight directive against html injection#760
lhy8888 wants to merge 1 commit intoveops:masterfrom
lhy8888:codex/sec-ui-highlight-xss

Conversation

@lhy8888
Copy link

@lhy8888 lhy8888 commented Mar 8, 2026

Summary

Highlight directive wrote raw innerHTML using unescaped text and regex/class input.

Security Fix

Escape HTML/regex input and sanitize class names before rendering highlighted output.

Linked Issue

Closes #759
#759

Commit

9353936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[SECURITY][High] DOM injection risk in highlight directive

1 participant