v0.0.191
Release notes
This release is signed with the squirrelscan release key, key id 3d10cf3775665622. If squirrel self update from 0.0.189 or earlier fails with ATTESTATION_FAILED (only when the GitHub CLI is logged in), re-run the install one-liner once (curl -fsSL https://install.squirrelscan.com | bash). It rolls up v0.0.191-beta.1 and v0.0.191-beta.2, with the new security/csp-violations rule, wider security/leaked-secrets coverage and shared components no longer sinking scores as the headline changes.
Added
security/leaked-secretsreads the places a repository scanner cannot see: HTML comments (locationhtml-comment), framework server-side data payloads such as Next.js__NEXT_DATA__, Nuxt__NUXT__, Remix__remixContextand SvelteKit__sveltekit_*(locationframework-payload, with the framework and its loader named in the finding), the original sources inside same-origin source maps (source-map), and same-origin config endpoints a bundle fetches by literal URL (config-endpoint). Source maps and config endpoints cost at most 10 extra requests per audit, one per URL, on the audit's fetch budget, and a cross-origin URL is never requested (#362)security/cspnow says whether the policy would contain a compromised third-party script on a page that loads one:csp-connect-unrestrictedwarns when script can send data to any host (no restrictingconnect-srcordefault-src, or one with*or a scheme such ashttps:),csp-strict-dynamic-third-partynotes that'strict-dynamic'trusts scripts vendors insert,csp-no-reportingnotes an enforced policy with noreport-toorreport-uri, andcsp-unsafe-scriptsnames the vendor scripts'unsafe-eval'exposes (#2087)- A failed
squirrel self update, or a failed update accepted at the startup prompt, now reports one bounded error code to telemetry (self_update:<CODE>, fixed message, no URLs or paths). Telemetry opt-outs apply as before. (#2243) - New rule
security/csp-violationsreports what the browser actually blocked under a page's Content-Security-Policy during a rendered crawl, grouped by blocked host and directive, with the host to add. A blocked analytics, ads, payments, captcha, form or booking vendor is an error. Plain HTTP pages are skipped with a reason, and rendered pages whose renderer did not record violations are listed as not checked, never passed. (#425)
Changed
- Scores: the issue-density penalty now pools the findings that component evidence marks as one shared element (such as a header logo link repeated on every page) and caps the pool, per score, at the weight of one failing element, however many pages or shared findings it holds, so shared components can no longer sink the overall score. Scores move for audits with repeated chrome findings, and the report's adjustment line says how much of the density penalty came from shared components (#2256)
squirrel auth loginandsquirrel setup(when signed in) now end with a plain-text pointer to the dashboard at https://app.squirrelscan.com to finish onboarding (#4976)- Rendered cloud audits now start checking a page as soon as its cloud data is ready, instead of waiting for the cloud step to finish across the whole crawl, so rules run earlier on pages that are already prefetched. (#2121)
Fixed
a11y/identical-links-same-purposeno longer reports links whose visible text is missing from their aria-label, whicha11y/label-content-name-mismatchalready flags, so one defect gives one finding (#2226)- A link written without a scheme (
example.org/a) is now shown masked in reports asexample.org/ainstead of a bare…(#2281) squirrel self updateno longer says a binary "was not built by the release workflow" when an attestation check fails, and every attestation or signature failure now names the recovery step (re-run the install one-liner) and links the docs (#2284)security/cookie-flags: there is onecookie-httponlycheck again. A session-like cookie withoutHttpOnlyon a page that loads third-party scripts iscookie-httponlyat fail, any other cookie withoutHttpOnlyiscookie-httponlyat warn, so a cookie that moves from warn to fail is one finding getting worse and keeps its first-seen date. 0.0.191-beta.1 shipped a separatecookie-httponly-third-party-scriptscheck name, so a beta user's local store will see that check disappear andcookie-httponlyreturn at fail on the next audit (#2298)- A merged
cookie-httponlyfinding no longer states fewer cookies than the items it lists when pages each list different cookies; the count reads as a range up to the merged items. (#2300) - Partial re-audits now score the same as full audits for findings that repeat as shared components on carried pages, including findings with several items (#2301, #2304).
security/supabase-rlsandreliability/broken-formsnow read an explicit "this audit may request other hosts" flag instead of inferring it from the external link results, sosecurity/supabase-rlsruns in the normal pass and is no longer capped by the late link-check deadline on aggressive runs with a time limit (#2109)- A crawl whose only page is a 2xx bot-challenge or empty-shell document (no doctype or
<html>, or generic "checking your browser" wording) is now reported asblockedwith no score, the same as a hard block, instead of a normal-looking health score (#2250). squirrel crawlno longer shows the project-name prompt when stdin or stdout is not a TTY, so piped and scripted runs no longer hang (#2263)
Security
security/leaked-secretsnow masks a secret that sits in the URL a finding names, such as a key in a script's query string or a token in a path segment, so the report no longer prints it in plain text. Labels, affected pages, occurrences and the lists of unread scripts all show it as a short prefix and suffix around an ellipsis, in every report format (#2270)security/cookie-flagsandsecurity/token-storagenow rate a finding one step higher, from warning to failure, when the page loads scripts from another domain, and name up to five of those script hosts, since any script on the page can read a cookie withoutHttpOnlyor a token in web storage.security/cookie-flagsraises only session-like cookies, ascookie-httponlyat fail. Pages with no third-party script report as before (#2089)
Docs
- The rule pages for 42 more rules (crawl and security) list the check names each rule emits and which clean check clears which problem check (#2218).
- The rule pages for 38 more rules (ax, core and url) list the check names each rule emits and which clean check clears which problem check (#2218).
- The telemetry FAQ and
selfdocs now say a failedsquirrel self updatealso sends the error category's fixed one-line description, never the raw error text. (#2243)
npm: this version is published to npm without provenance. It was built off GitHub Actions, and npm provenance needs a GitHub OIDC identity. The binaries carry the squirrelscan release-key signature instead.
Signed with the squirrelscan release key 3d10cf3775665622: every asset has a .sig (DER ECDSA P-256 over SHA-256), verify with openssl dgst -sha256 -verify.
Update to this version
squirrelscan will auto-update, or run this command to update now.