You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
If you insert an element with a prop containing HTML, the HTML will get rendered in the "inspect" overlay, potentially causing a harmless XSS.
This not an issue most of the time, but I am writing an article demonstrating an XSS (a simple alert(1)) and it is a bit annoying.
Notice in the example that I am not rendering the XSS-causing img tag in my code, but it is still getting executed. Stackblitz sandbox doesn't show it as well, but the element is getting loaded, erroring out, and alerting.
What's the expected result?
The inspect overlay does not render HTML if it is in the props
Astro Info
If this issue only occurs in one browser, which browser is a problem?
No response
Describe the Bug
If you insert an element with a prop containing HTML, the HTML will get rendered in the "inspect" overlay, potentially causing a harmless XSS.
This not an issue most of the time, but I am writing an article demonstrating an XSS (a simple
alert(1)
) and it is a bit annoying.Notice in the example that I am not rendering the XSS-causing
img
tag in my code, but it is still getting executed. Stackblitz sandbox doesn't show it as well, but the element is getting loaded, erroring out, and alerting.What's the expected result?
The inspect overlay does not render HTML if it is in the props
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-1mq73i?file=src%2Fpages%2Findex.astro
Participation
The text was updated successfully, but these errors were encountered: