Repository navigation
π‘οΈ Sentinel: [HIGH] Fix missing Subresource Integrity (SRI) - #66
google-labs-jules[bot] wants to merge 1 commit into
Conversation
Added SRI hashes to CDN assets in `web/index.html` to prevent XSS.
|
π Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a π emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
|
review locally and close this PR |
π¨ Severity: HIGH
π‘ Vulnerability: External CDN assets (KaTeX CSS/JS) lacked Subresource Integrity (SRI) hashes, trusting the CDN blindly.
π― Impact: If the CDN is compromised, a malicious actor could replace the assets and execute XSS attacks on users visiting the site.
π§ Fix: Generated SHA-384 hashes for the specific KaTeX versions used and added
integrityattributes alongsidecrossorigin="anonymous".β Verification:
cargo checkandcargo fmtpass in thewebdirectory, verifying the build isn't broken. Also recorded the finding in.jules/sentinel.md.PR created automatically by Jules for task 17562281440778692189 started by @panayang