Title: [Low][security] DOM-clobbering protection is a small denylist; generic id/name clobbering passes · Issue #179 · bQuery/bQuery · GitHub
Open Graph Title: [Low][security] DOM-clobbering protection is a small denylist; generic id/name clobbering passes · Issue #179 · bQuery/bQuery
X Title: [Low][security] DOM-clobbering protection is a small denylist; generic id/name clobbering passes · Issue #179 · bQuery/bQuery
Description: Severity: 🟢 Low (defense-in-depth; weak denylist) Location src/security/constants.ts:132-169 (RESERVED_IDS), applied at src/security/sanitize-core.ts:286. Description DOM-clobbering protection only strips id/name values whose exact (trim...
Open Graph Description: Severity: 🟢 Low (defense-in-depth; weak denylist) Location src/security/constants.ts:132-169 (RESERVED_IDS), applied at src/security/sanitize-core.ts:286. Description DOM-clobbering protection only...
X Description: Severity: 🟢 Low (defense-in-depth; weak denylist) Location src/security/constants.ts:132-169 (RESERVED_IDS), applied at src/security/sanitize-core.ts:286. Description DOM-clobbering protection only...
Opengraph URL: https://github.com/bQuery/bQuery/issues/179
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Low][security] DOM-clobbering protection is a small denylist; generic id/name clobbering passes","articleBody":"## Severity: 🟢 Low (defense-in-depth; weak denylist)\n\n## Location\n[`src/security/constants.ts:132-169`](../blob/main/src/security/constants.ts#L132-L169) (`RESERVED_IDS`), applied at [`src/security/sanitize-core.ts:286`](../blob/main/src/security/sanitize-core.ts#L286).\n\n## Description\nDOM-clobbering protection only strips `id`/`name` values whose exact (trimmed, lowercased) value is in a ~30-entry reserved list. Generic clobbering passes: `\u003ca id=\"myCustomGlobal\"\u003e` and the classic `\u003ca id=x\u003e\u003c/a\u003e\u003ca id=x name=y\u003e\u003c/a\u003e` HTMLCollection-clobbering vector survive unchanged. The list is also incomplete (`attributes`, `nodeName`, `getElementById`, `defaultView`, `implementation`, … are absent). Any app that reads `window.\u003cid\u003e`, `document.\u003cname\u003e`, or uses named form controls remains clobberable.\n\n## Suggested fix\nTreat this as defense-in-depth and document it as such. Consider optionally namespacing/prefixing untrusted `id`/`name`, or dropping them entirely on untrusted content; at minimum expand the list and reject duplicate ids within a sanitized fragment.\n\n---\n_Filed as part of a full-codebase security \u0026 correctness audit._\n","author":{"url":"https://github.com/JosunLP","@type":"Person","name":"JosunLP"},"datePublished":"2026-07-05T17:03:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/179/bQuery/issues/179"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5615fde7-3944-06e9-6264-b40c0fdf8497 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9866:14F965:154EB2F:1D521A7:6A4DF0E3 |
| html-safe-nonce | 6806ea03dc87771301cc03702dba51f8ad941afd29d5e15c4090eaf0aa19b392 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODY2OjE0Rjk2NToxNTRFQjJGOjFENTIxQTc6NkE0REYwRTMiLCJ2aXNpdG9yX2lkIjoiNDU5MTgxODcyOTg2MDIzMTM5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 9bb66c1f9fda216f008fcdb1699e5baeae034100797878bbf81cf6b03c514f0b |
| hovercard-subject-tag | issue:4813696414 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bQuery/bQuery/179/issue_layout |
| twitter:image | https://opengraph.githubassets.com/43b44db12cdafd147ac020a958dc74fb6fef03ca7c007f1012a271d78c955be5/bQuery/bQuery/issues/179 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/43b44db12cdafd147ac020a958dc74fb6fef03ca7c007f1012a271d78c955be5/bQuery/bQuery/issues/179 |
| og:image:alt | Severity: 🟢 Low (defense-in-depth; weak denylist) Location src/security/constants.ts:132-169 (RESERVED_IDS), applied at src/security/sanitize-core.ts:286. Description DOM-clobbering protection only... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JosunLP |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5818716c93c6a2925b815402541a32814e43a7b1261c322b0c2df75224289566 |
| turbo-cache-control | no-preview |
| 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 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f4bb89367ca678f057d79b1abc45d6675b1bd5b2 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width