-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
fix(nuxt): escape HTML in development error page stack trace #33820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
WalkthroughImported Pre-merge checks and finishing touches✅ Passed checks (5 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used📓 Path-based instructions (3)**/*.{ts,tsx,vue}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.vue📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
**/*.{ts,tsx,js,jsx,vue}📄 CodeRabbit inference engine (.github/copilot-instructions.md)
Files:
🧠 Learnings (3)📚 Learning: 2024-12-12T12:36:34.871ZApplied to files:
📚 Learning: 2025-11-25T11:42:16.132ZApplied to files:
📚 Learning: 2025-11-25T11:42:16.132ZApplied to files:
🔇 Additional comments (3)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
@nuxt/kit
@nuxt/nitro-server
nuxt
@nuxt/rspack-builder
@nuxt/schema
@nuxt/vite-builder
@nuxt/webpack-builder
commit: |
Fixes nuxt#33790 The stack trace text in the development error page was being inserted directly into HTML without escaping, which could lead to XSS if the error message contained malicious content. This change uses escapeHtml from vue to properly escape the stack trace text before inserting it into the HTML.
CodSpeed Performance ReportMerging #33820 will not alter performanceComparing Summary
|
5f0dd02 to
a7d8d54
Compare
danielroe
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you ❤️
🔗 Linked issue
Fixes #33790
📚 Description
The development error page (
nuxt-error-page.vue) was not escaping the stack trace text before inserting it into HTML, which could lead to XSS if the error message contained malicious content like<script>tags.