René's URL Explorer Experiment


Title: fix(ssr): validate bq-style declarations in the pure renderer by JosunLP · Pull Request #196 · bQuery/bQuery · GitHub

Open Graph Title: fix(ssr): validate bq-style declarations in the pure renderer by JosunLP · Pull Request #196 · bQuery/bQuery

X Title: fix(ssr): validate bq-style declarations in the pure renderer by JosunLP · Pull Request #196 · bQuery/bQuery

Description: Summary Fixes #176 (Low; CSS injection — no HTML breakout). The DOM-free setStyle concatenated bq-style property names and values into the inline style attribute with no CSS-level validation. Attribute escaping prevents HTML breakout, but an untrusted style value like x;} body{display:none injected extra declarations/rules (UI-redress/clickjacking, exfiltration via background: url(...)). Fix setStyle (pure renderer) now drops any declaration whose property name is not a valid CSS identifier (--custom or kebab-case) or whose value contains injection characters (;, {, }, <). The DOM-backed renderer was already safe — it writes via CSSStyleDeclaration.setProperty, which rejects malformed values. Verification New tests across both backends: a malicious width: 'x;} body{display:none' is dropped; safe declarations (color, marginTop) pass through. The malicious case fails on the pre-fix pure renderer. SSR suites: all pass. tsc --noEmit clean. 🤖 Generated with Claude Code

Open Graph Description: Summary Fixes #176 (Low; CSS injection — no HTML breakout). The DOM-free setStyle concatenated bq-style property names and values into the inline style attribute with no CSS-level validation. Attri...

X Description: Summary Fixes #176 (Low; CSS injection — no HTML breakout). The DOM-free setStyle concatenated bq-style property names and values into the inline style attribute with no CSS-level validation. Attri...

Opengraph URL: https://github.com/bQuery/bQuery/pull/196

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:f9875622-eccd-cdee-fccc-380f34c860bb
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE1C2:153317:4A56B3:69BF46:6A4E7098
html-safe-nonce91b541a3902a0300f80e0d33768a87fa83af4c2a64334455762057bc28156135
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUMyOjE1MzMxNzo0QTU2QjM6NjlCRjQ2OjZBNEU3MDk4IiwidmlzaXRvcl9pZCI6IjU5MzU3MjMyMjIzNjg0MTU4OTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac3dcb3f8cb3b3d7fcbd5878d7cae60035643334c6836c58d59bc69f34d686b982
hovercard-subject-tagpull_request:4001190067
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/bQuery/bQuery/pull/196/files
twitter:imagehttps://avatars.githubusercontent.com/u/20913954?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/20913954?s=400&v=4
og:image:altSummary Fixes #176 (Low; CSS injection — no HTML breakout). The DOM-free setStyle concatenated bq-style property names and values into the inline style attribute with no CSS-level validation. Attri...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None41b6ab3ba6d20a71766ac245b5a4a94c6fc672a9cd4da7d44c1b33ab8bf6a21c
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/bQuery/bQuery git https://github.com/bQuery/bQuery.git
octolytics-dimension-user_id256381806
octolytics-dimension-user_loginbQuery
octolytics-dimension-repository_id1139284244
octolytics-dimension-repository_nwobQuery/bQuery
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1139284244
octolytics-dimension-repository_network_root_nwobQuery/bQuery
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasee6a744804e8e70f97b4d5a18a94dcc63db22f97a
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/bQuery/bQuery/pull/196/files#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FbQuery%2FbQuery%2Fpull%2F196%2Ffiles
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FbQuery%2FbQuery%2Fpull%2F196%2Ffiles
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=bQuery%2FbQuery
Reloadhttps://github.com/bQuery/bQuery/pull/196/files
Reloadhttps://github.com/bQuery/bQuery/pull/196/files
Reloadhttps://github.com/bQuery/bQuery/pull/196/files
Please reload this pagehttps://github.com/bQuery/bQuery/pull/196/files
bQuery https://github.com/bQuery
bQueryhttps://github.com/bQuery/bQuery
Please reload this pagehttps://github.com/bQuery/bQuery/pull/196/files
Notifications https://github.com/login?return_to=%2FbQuery%2FbQuery
Fork 0 https://github.com/login?return_to=%2FbQuery%2FbQuery
Star 1 https://github.com/login?return_to=%2FbQuery%2FbQuery
Code https://github.com/bQuery/bQuery
Issues 0 https://github.com/bQuery/bQuery/issues
Pull requests 0 https://github.com/bQuery/bQuery/pulls
Actions https://github.com/bQuery/bQuery/actions
Security and quality 0 https://github.com/bQuery/bQuery/security
Insights https://github.com/bQuery/bQuery/pulse
Code https://github.com/bQuery/bQuery
Issues https://github.com/bQuery/bQuery/issues
Pull requests https://github.com/bQuery/bQuery/pulls
Actions https://github.com/bQuery/bQuery/actions
Security and quality https://github.com/bQuery/bQuery/security
Insights https://github.com/bQuery/bQuery/pulse
Sign up for GitHub https://github.com/signup?return_to=%2FbQuery%2FbQuery%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FbQuery%2FbQuery%2Fissues%2Fnew%2Fchoose
JosunLPhttps://github.com/JosunLP
devhttps://github.com/bQuery/bQuery/tree/dev
fix/176-bq-style-css-injectionhttps://github.com/bQuery/bQuery/tree/fix/176-bq-style-css-injection
Conversation 1 https://github.com/bQuery/bQuery/pull/196
Commits 3 https://github.com/bQuery/bQuery/pull/196/commits
Checks 8 https://github.com/bQuery/bQuery/pull/196/checks
Files changed https://github.com/bQuery/bQuery/pull/196/files
Please reload this pagehttps://github.com/bQuery/bQuery/pull/196/files
fix(ssr): validate bq-style declarations in the pure renderer https://github.com/bQuery/bQuery/pull/196/files#top
Show all changes 3 commits https://github.com/bQuery/bQuery/pull/196/files
5d5967d fix(ssr): validate bq-style declarations in the pure renderer JosunLP Jul 6, 2026 https://github.com/bQuery/bQuery/pull/196/commits/5d5967d80d1b37dd2f7e550bfb8081ace6f1399b
31360b3 Merge branch 'dev' into fix/176-bq-style-css-injection JosunLP Jul 6, 2026 https://github.com/bQuery/bQuery/pull/196/commits/31360b3287d304d8bf9f410b9265575a64f2c29a
939a46a test(ssr): fix merge artifact — close #176 bq-style describe block JosunLP Jul 6, 2026 https://github.com/bQuery/bQuery/pull/196/commits/939a46a2304244a3a3df94d540fb4e91cea013bb
Clear filters https://github.com/bQuery/bQuery/pull/196/files
Please reload this pagehttps://github.com/bQuery/bQuery/pull/196/files
Please reload this pagehttps://github.com/bQuery/bQuery/pull/196/files
renderer.ts https://github.com/bQuery/bQuery/pull/196/files#diff-a6ae8d7fbff7a8f7d2f6c63da171b925afbe2c7b148ef116dada07787e81357c
ssr-stable.test.ts https://github.com/bQuery/bQuery/pull/196/files#diff-e551e86586b6932becdd3f496655c93da8b021cf4948ef875378cb5ceabed601
src/ssr/renderer.tshttps://github.com/bQuery/bQuery/pull/196/files#diff-a6ae8d7fbff7a8f7d2f6c63da171b925afbe2c7b148ef116dada07787e81357c
View file https://github.com/bQuery/bQuery/blob/939a46a2304244a3a3df94d540fb4e91cea013bb/src/ssr/renderer.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/bQuery/bQuery/pull/196/{{ revealButtonHref }}
https://github.com/bQuery/bQuery/pull/196/files#diff-a6ae8d7fbff7a8f7d2f6c63da171b925afbe2c7b148ef116dada07787e81357c
https://github.com/bQuery/bQuery/pull/196/files#diff-a6ae8d7fbff7a8f7d2f6c63da171b925afbe2c7b148ef116dada07787e81357c
tests/ssr-stable.test.tshttps://github.com/bQuery/bQuery/pull/196/files#diff-e551e86586b6932becdd3f496655c93da8b021cf4948ef875378cb5ceabed601
View file https://github.com/bQuery/bQuery/blob/939a46a2304244a3a3df94d540fb4e91cea013bb/tests/ssr-stable.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/bQuery/bQuery/pull/196/{{ revealButtonHref }}
https://github.com/bQuery/bQuery/pull/196/files#diff-e551e86586b6932becdd3f496655c93da8b021cf4948ef875378cb5ceabed601
https://github.com/bQuery/bQuery/pull/196/files#diff-e551e86586b6932becdd3f496655c93da8b021cf4948ef875378cb5ceabed601
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.