<img src=x onerror=alert(1)>; asserts no
element materializes when the result is assigned to innerHTML.
Verified the fallback branch actually fires under happy-dom: output is now <img src=x onerror=alert(1)> (inert text).
bun test tests/security.test.ts: 59 pass / 0 fail. tsc --noEmit clean.
🤖 Generated with Claude Code
Open Graph Description: Summary
Fixes #162 (Critical).
The anti-mXSS double-parse in sanitizeHtmlCore returned raw, unescaped fragment.textContent when the serialize→re-parse output was unstable. Every caller assigns the ...
X Description: Summary
Fixes #162 (Critical).
The anti-mXSS double-parse in sanitizeHtmlCore returned raw, unescaped fragment.textContent when the serialize→re-parse output was unstable. Every caller assigns the ...
Opengraph URL: https://github.com/bQuery/bQuery/pull/182
X: @github
direct link
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:49fba311-22f5-835f-a419-ff3461000374 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C2A8:C86CC:7BFB23:B4C9A2:6A4E113E |
| html-safe-nonce | 4dc0359051d4d6b1d1f3ef378fa73dc83b18afba102b932de0ac2b9658bbfa2d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkE4OkM4NkNDOjdCRkIyMzpCNEM5QTI6NkE0RTExM0UiLCJ2aXNpdG9yX2lkIjoiMjU2MDkwODgxMzYyNTMzMjAzMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | c56f7d8bbd465e3a382bf890b0b8a93927df3a307096e18e5e5921f15d0c42b3 |
| hovercard-subject-tag | pull_request:4000822471 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/bQuery/bQuery/pull/182/files |
| twitter:image | https://avatars.githubusercontent.com/u/20913954?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/20913954?s=400&v=4 |
| og:image:alt | Summary
Fixes #162 (Critical).
The anti-mXSS double-parse in sanitizeHtmlCore returned raw, unescaped fragment.textContent when the serialize→re-parse output was unstable. Every caller assigns the ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/bQuery/bQuery git https://github.com/bQuery/bQuery.git |
| octolytics-dimension-user_id | 256381806 |
| octolytics-dimension-user_login | bQuery |
| octolytics-dimension-repository_id | 1139284244 |
| octolytics-dimension-repository_nwo | bQuery/bQuery |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1139284244 |
| octolytics-dimension-repository_network_root_nwo | bQuery/bQuery |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 51470c353b8a1f52a88d3e3cc2014b17ab8cc1ce |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |