Skip to content

Commit 8a9a3c9

Browse files
committed
fix(csp): drop overbroad *.hubspot.com connect-src wildcard
Greptile correctly flagged that *.hubspot.com is far broader than anything the tracker actually needs — it covers HubSpot's entire product surface (app, api, marketing), not just the tracking endpoints. Re-checked my own network trace from earlier: the pageview beacon itself is an image pixel (new Image() to track.hubspot.com/__pto.gif), which is governed by img-src (already wide open to any https: origin), not connect-src. The *.hubspot.com entry was an unverified guess for the forms-API/banner fetch calls I couldn't pin down through minification — removing it since I can't confirm what it was actually protecting, keeping only the verified *.hscollectedforms.net entry.
1 parent 24e9f45 commit 8a9a3c9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • apps/sim/lib/core/security

apps/sim/lib/core/security/csp.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,10 @@ const STATIC_CONNECT_SRC = [
102102
'https://www.google.com',
103103
'https://analytics.ahrefs.com',
104104
'https://*.g.doubleclick.net',
105-
// HubSpot tracking — form-tracking API (hscollectedforms.js) and
106-
// the visitor beacon (track.hubspot.com)
105+
// HubSpot tracking — form-tracking API (hscollectedforms.js).
106+
// The visitor beacon itself is an image pixel (img-src, already
107+
// permitted below), not a connect-src request.
107108
'https://*.hscollectedforms.net',
108-
'https://*.hubspot.com',
109109
]
110110
: []),
111111
] as const

0 commit comments

Comments
 (0)