You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
security/leaked-secrets: Mida optimize.js public project key in script src flagged as secret #574
squirrel 0.0.105 reports security/leaked-secrets ("1 potential secret(s) detected — Found in html") on a page whose only match is the public project key of the Mida A/B-testing snippet:
Mida's key query parameter is a public client/project identifier. It ships to every visitor by design, the same way as Klaviyo's company_id or a referrer-restricted Google Maps browser key. Every shop running Mida gets a medium finding it cannot act on.
No finding when the match is the key parameter of a src on cdn.mida.so/js/optimize.js, or more generally a value in the src query of a known client-side tag vendor (related: #359, #362).
Acceptance Criteria
The repro page (a <script src="https://cdn.mida.so/js/optimize.js?key=...">) produces no security/leaked-secrets finding
The suppression is a general, table-driven rule for the query parameter of a src or href on a known client-side tag vendor (Mida key, Klaviyo company_id, and the other vendors already known to ship public identifiers in script URLs), not a one-off string check for Mida
A secret-shaped value in the same query parameter on an unknown host is still reported, and a real server-only secret elsewhere on the same page is still reported
Table-driven tests cover the Mida repro, at least two other vendors, an unknown host with the same parameter name, and the existing leaked-secrets corpus tests still pass unchanged
docs/rules/security/leaked-secrets.mdx lists the public-by-design vendor identifiers that are not reported, and how to extend the list
Thanks for the clear repro. Triaged as a false positive: a public project identifier in a script URL. Acceptance criteria are added above; the fix will be a general list of known client-side vendor identifiers in script URLs, so Klaviyo, Mida and similar do not each need their own report.
Thanks for the clear report and repro. This is fixed in v0.0.107 (#584): security/leaked-secrets now skips public vendor identifiers in script and link URL queries through a table (Mida key on cdn.mida.so and cdn-eu.mida.so, Klaviyo company_id, reCAPTCHA render). The same parameter on any other host, and a real secret elsewhere on the page, are still reported. The table and how to extend it are in the rule docs under "Vendor identifiers in script URLs are not reported".
If your real key still triggers a finding on v0.0.107 or later, please comment here with the pattern name from the report and we'll take another look.
Activity
nc9 commentedon Oct 8, 2026
Thanks for the clear repro. Triaged as a false positive: a public project identifier in a script URL. Acceptance criteria are added above; the fix will be a general list of known client-side vendor identifiers in script URLs, so Klaviyo, Mida and similar do not each need their own report.
fix(rules): skip vendor public identifiers in script URL queries in l…
fix(rules): keep tutorial values and Spaces key ids out of the critic…
nc9 commentedon Oct 10, 2026
Thanks for the clear report and repro. This is fixed in v0.0.107 (#584):
security/leaked-secretsnow skips public vendor identifiers in script and link URL queries through a table (Midakeyoncdn.mida.soandcdn-eu.mida.so, Klaviyocompany_id, reCAPTCHArender). The same parameter on any other host, and a real secret elsewhere on the page, are still reported. The table and how to extend it are in the rule docs under "Vendor identifiers in script URLs are not reported".If your real key still triggers a finding on v0.0.107 or later, please comment here with the pattern name from the report and we'll take another look.