René's URL Explorer Experiment


Title: bug: JSON literals are accepted as numeric survey prefill values · Issue #8213 · formbricks/formbricks · GitHub

Open Graph Title: bug: JSON literals are accepted as numeric survey prefill values · Issue #8213 · formbricks/formbricks

X Title: bug: JSON literals are accepted as numeric survey prefill values · Issue #8213 · formbricks/formbricks

Description: Issue Numeric survey prefill parsing currently accepts JSON literals like true, false, and null as numbers. Examples: ?npsQuestionId=true ?ratingQuestionId=true ?npsQuestionId=null Current behavior: parseNumber("true") returns 1 parseNum...

Open Graph Description: Issue Numeric survey prefill parsing currently accepts JSON literals like true, false, and null as numbers. Examples: ?npsQuestionId=true ?ratingQuestionId=true ?npsQuestionId=null Current behavior...

X Description: Issue Numeric survey prefill parsing currently accepts JSON literals like true, false, and null as numbers. Examples: ?npsQuestionId=true ?ratingQuestionId=true ?npsQuestionId=null Current behavior...

Opengraph URL: https://github.com/formbricks/formbricks/issues/8213

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bug: JSON literals are accepted as numeric survey prefill values","articleBody":"## Issue\n\nNumeric survey prefill parsing currently accepts JSON literals like `true`, `false`, and `null` as numbers.\n\nExamples:\n\n```text\n?npsQuestionId=true\n?ratingQuestionId=true\n?npsQuestionId=null\n```\n\nCurrent behavior:\n\n- `parseNumber(\"true\")` returns `1`\n- `parseNumber(\"false\")` returns `0`\n- `parseNumber(\"null\")` returns `0`\n- NPS/rating validators can then accept those coerced values as valid numeric prefill answers\n\nExpected behavior: numeric prefill values should only accept actual parsed numbers. JSON booleans/null should be rejected and ignored as invalid prefill values.\n\n## Impact\n\nMalformed or incorrectly generated survey links can silently prefill real NPS/rating answers with unintended values instead of being ignored.\n\n## Fix\n\n`parseNumber` now accepts only finite parsed JSON numbers, avoiding `Number(...)` coercion of booleans/null.\n\n## Tests\n\nAdded regression coverage for:\n\n- `parseNumber(\"true\")`, `parseNumber(\"false\")`, and `parseNumber(\"null\")`\n- `validateNPS(\"true\")` / `validateNPS(\"null\")`\n- `validateRating(..., \"true\")` / `validateRating(..., \"null\")`\n\nVerified:\n\n```bash\ngit diff --check\npnpm vitest run apps/web/modules/survey/link/lib/prefill/parsers.test.ts apps/web/modules/survey/link/lib/prefill/validators.test.ts\npnpm --filter @formbricks/web exec eslint modules/survey/link/lib/prefill/parsers.ts modules/survey/link/lib/prefill/parsers.test.ts modules/survey/link/lib/prefill/validators.test.ts\n```\n\nBranch: https://github.com/bharathkumar39293/formbricks/tree/fix/reject-json-literals-prefill-number\n\nSince PR creation is restricted for contributors, I’m happy to open a PR if access is granted, or a maintainer can cherry-pick the commit.","author":{"url":"https://github.com/bharathkumar39293","@type":"Person","name":"bharathkumar39293"},"datePublished":"2026-06-02T10:01:47.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/8213/formbricks/issues/8213"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e1d5252e-4106-489a-d918-40937aae07d1
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idE1CC:E17B4:5CC1302:80B0934:6A4BB360
html-safe-nonce6d3a5c036b1c61706befbe15e1ffc2403deb08cdb2eb3178153c5f5fa68208e5
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMUNDOkUxN0I0OjVDQzEzMDI6ODBCMDkzNDo2QTRCQjM2MCIsInZpc2l0b3JfaWQiOiIzNjY1OTE1NTA0MTY0MDU3OTUyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac3d7072efd8f5ee0641e52ac78e4684007f0d3623ceeb098a0b625bfe8c792b29
hovercard-subject-tagissue:4570430796
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/formbricks/formbricks/8213/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e509480c783eff5a1ccfa2ad2f99f2c0ca947b4a670f510c15d0ca47062363a4/formbricks/formbricks/issues/8213
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e509480c783eff5a1ccfa2ad2f99f2c0ca947b4a670f510c15d0ca47062363a4/formbricks/formbricks/issues/8213
og:image:altIssue Numeric survey prefill parsing currently accepts JSON literals like true, false, and null as numbers. Examples: ?npsQuestionId=true ?ratingQuestionId=true ?npsQuestionId=null Current behavior...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebharathkumar39293
hostnamegithub.com
expected-hostnamegithub.com
Noneae1c14875555a1dd92bdef45baa6dd9aa796df891e4e471989f7117fe3139fc1
turbo-cache-controlno-preview
go-importgithub.com/formbricks/formbricks git https://github.com/formbricks/formbricks.git
octolytics-dimension-user_id105877416
octolytics-dimension-user_loginformbricks
octolytics-dimension-repository_id500289888
octolytics-dimension-repository_nwoformbricks/formbricks
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id500289888
octolytics-dimension-repository_network_root_nwoformbricks/formbricks
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release68fba4ebcf15cde644b66de9a06e0a8582279435
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/formbricks/formbricks/issues/8213#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fformbricks%2Fformbricks%2Fissues%2F8213
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/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/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/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%2Fformbricks%2Fformbricks%2Fissues%2F8213
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%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=formbricks%2Fformbricks
Reloadhttps://github.com/formbricks/formbricks/issues/8213
Reloadhttps://github.com/formbricks/formbricks/issues/8213
Reloadhttps://github.com/formbricks/formbricks/issues/8213
Please reload this pagehttps://github.com/formbricks/formbricks/issues/8213
formbricks https://github.com/formbricks
formbrickshttps://github.com/formbricks/formbricks
Notifications https://github.com/login?return_to=%2Fformbricks%2Fformbricks
Fork 2.4k https://github.com/login?return_to=%2Fformbricks%2Fformbricks
Star 12.5k https://github.com/login?return_to=%2Fformbricks%2Fformbricks
Code https://github.com/formbricks/formbricks
Issues 194 https://github.com/formbricks/formbricks/issues
Pull requests 22 https://github.com/formbricks/formbricks/pulls
Discussions https://github.com/formbricks/formbricks/discussions
Actions https://github.com/formbricks/formbricks/actions
Security and quality 1 https://github.com/formbricks/formbricks/security
Insights https://github.com/formbricks/formbricks/pulse
Code https://github.com/formbricks/formbricks
Issues https://github.com/formbricks/formbricks/issues
Pull requests https://github.com/formbricks/formbricks/pulls
Discussions https://github.com/formbricks/formbricks/discussions
Actions https://github.com/formbricks/formbricks/actions
Security and quality https://github.com/formbricks/formbricks/security
Insights https://github.com/formbricks/formbricks/pulse
bug: JSON literals are accepted as numeric survey prefill valueshttps://github.com/formbricks/formbricks/issues/8213#top
improvementhttps://github.com/formbricks/formbricks/issues?q=state%3Aopen%20label%3A%22improvement%22
https://github.com/bharathkumar39293
bharathkumar39293https://github.com/bharathkumar39293
on Jun 2, 2026https://github.com/formbricks/formbricks/issues/8213#issue-4570430796
https://github.com/bharathkumar39293/formbricks/tree/fix/reject-json-literals-prefill-numberhttps://github.com/bharathkumar39293/formbricks/tree/fix/reject-json-literals-prefill-number
improvementhttps://github.com/formbricks/formbricks/issues?q=state%3Aopen%20label%3A%22improvement%22
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.