Title: [Low][ssr] bq-style allows CSS declaration injection from untrusted style objects · Issue #176 · bQuery/bQuery · GitHub
Open Graph Title: [Low][ssr] bq-style allows CSS declaration injection from untrusted style objects · Issue #176 · bQuery/bQuery
X Title: [Low][ssr] bq-style allows CSS declaration injection from untrusted style objects · Issue #176 · bQuery/bQuery
Description: Severity: 🟢 Low (CSS injection — no HTML breakout) Location src/ssr/renderer.ts:140-150 (setStyle). Description Style property names/values from an evaluated bq-style object are concatenated into the inline style attribute with no CSS-le...
Open Graph Description: Severity: 🟢 Low (CSS injection — no HTML breakout) Location src/ssr/renderer.ts:140-150 (setStyle). Description Style property names/values from an evaluated bq-style object are concatenated into t...
X Description: Severity: 🟢 Low (CSS injection — no HTML breakout) Location src/ssr/renderer.ts:140-150 (setStyle). Description Style property names/values from an evaluated bq-style object are concatenated into t...
Opengraph URL: https://github.com/bQuery/bQuery/issues/176
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[Low][ssr] bq-style allows CSS declaration injection from untrusted style objects","articleBody":"## Severity: 🟢 Low (CSS injection — no HTML breakout)\n\n## Location\n[`src/ssr/renderer.ts:140-150`](../blob/main/src/ssr/renderer.ts#L140-L150) (`setStyle`).\n\n## Description\nStyle property names/values from an evaluated `bq-style` object are concatenated into the inline `style` attribute with no CSS-level validation. Attribute-level escaping prevents HTML breakout (`\"` is entity-encoded on serialize), so this is **not** XSS, but untrusted style objects can inject arbitrary extra declarations for UI-redress/clickjacking or data exfiltration (`position: fixed`, `background: url(...)`).\n\nReproduced: `{ width: 'x;} body{display:none' }` → `style=\"width: x;} body{display:none;\"` (contained within the attribute, but the extra declaration is injected).\n\n## Suggested fix\nValidate declaration values (reject `;`/`}`/`url(` in untrusted values, or run through a CSS property/value allowlist) before concatenation.\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:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/176/bQuery/issues/176"}
| 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:b8eb350d-cf56-8e29-353e-abf30489ad05 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D5B0:3F4811:D4DDC8:1381F6D:6A4E2C8F |
| html-safe-nonce | 65f01e8d2c3f60b62d045abf2ab7435047a4536c3e1fd1dcd2a8779174f33a97 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENUIwOjNGNDgxMTpENEREQzg6MTM4MUY2RDo2QTRFMkM4RiIsInZpc2l0b3JfaWQiOiI0Nzg4MDIyMDgzMDA2MTE0OTU5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | c0e74d90c3efb4117adbcaca879d30c8c0d17b25200ce65ee1f13cfb4b79197f |
| hovercard-subject-tag | issue:4813696136 |
| 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/176/issue_layout |
| twitter:image | https://opengraph.githubassets.com/170b0e081b7196410dcddc463d64afaaf29709476f2bbf2f21b6bdf667cc0e6d/bQuery/bQuery/issues/176 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/170b0e081b7196410dcddc463d64afaaf29709476f2bbf2f21b6bdf667cc0e6d/bQuery/bQuery/issues/176 |
| og:image:alt | Severity: 🟢 Low (CSS injection — no HTML breakout) Location src/ssr/renderer.ts:140-150 (setStyle). Description Style property names/values from an evaluated bq-style object are concatenated into t... |
| 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 | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| 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 | d9dd20d38f8ae3c4cb6b597807431db300d0bd2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width