The New Vibe Audit Solution

Hello everyone,

I’m a developer who regularly uses Google AI Studio, and I recently ran an independent quality audit on google aistudio using Vibeaudit, a tool designed to catch “vibe coding” artifacts in production web applications.

The result: 68/100 (Grade C). Let me break down what that means technically.

What AI Studio gets right

The HTML payload is 25 KB — exceptionally lean. For context, I’ve benchmarked 10 AI platforms in the same category. Claude Code delivers 1.9 MB (76× larger), Cursor ships 706 KB (28× larger), RunwayML comes in at 694 KB. AI Studio is by far the most efficient initial payload in the entire comparison set. HTTPS is properly configured, viewport meta is present, and the doctype is correct. The foundation is genuinely clean.

What the audit flagged

Six inline scripts and one inline style block are embedded directly in the HTML. This isn’t a cosmetic issue — it’s a structural security limitation. Here’s why:

A strict Content-Security-Policy header is one of the most effective defenses against Cross-Site Scripting attacks. It works by whitelisting trusted script sources and blocking everything else. But inline scripts bypass this model entirely. To allow them, you must either use unsafe-inline — which effectively disables CSP’s XSS protection — or generate per-request nonces, which adds server complexity that most teams avoid.

In practice, the presence of these six inline blocks means AI Studio either runs without a strict CSP or runs with unsafe-inline enabled. Neither option is appropriate for a platform handling user API keys and custom code execution.

How this compares to other platforms

Perplexity.ai scored 55/100 with only 2 inline scripts and 1 inline style on an 11 KB payload. Their architecture is similarly lean, and they are the closest peer to AI Studio in terms of efficiency. The difference: Perplexity has fewer inline scripts blocking their CSP path.

DeepSeek scored 62/100 with 23 inline scripts and 65 inline styles embedded in a 96 KB payload. More issues than AI Studio, but their overall score was dragged down by the volume of inline styles rather than scripts.

Cursor scored 65/100 with 76 inline scripts and a staggering 809 inline styles. That’s the most extreme example of inline proliferation I’ve recorded. Their HTML payload is 706 KB — nearly 30× larger than AI Studio’s — yet they scored only three points lower because their CSS architecture is cleaner.

Claude Code scored 48/100 initially, later improving to 76/100 in a subsequent scan. Their 1.9 MB HTML payload remains the largest bottleneck across all platforms tested.

AI Studio sits in a unique position: the leanest HTML of all platforms, but enough inline scripts to block a meaningful security improvement. The fix is smaller here than anywhere else in the benchmark.

The deeper concern

Google AI Studio is the interface where developers learn to prototype and generate code with Gemini. When the platform itself ships inline scripts in production, it normalizes a pattern that weakens security for every developer who follows the example. This isn’t about policy compliance — it’s about the signal sent to an ecosystem that looks to Google for best practices.

What the fix looks like

Externalizing six scripts and one style block is a 1–3 day engineering effort. The approach is straightforward: extract each inline block into a dedicated .js or .css file, reference them with or, deploy a strict CSP header. For any script that absolutely must remain inline, generate a SHA-256 hash and whitelist it in the CSP. This preserves functionality while eliminating the unsafe-inline dependency.

The entire remediation fits within a single sprint. The ROI is immediate: stricter XSS protection, better cache ability, and a clear signal to the developer community that AI Studio follows the security practices it recommends.

My questions for the team

-Is the engineering team aware of these six inline scripts and their impact on CSP enforcement?
-Are there existing plans to externalize them in an upcoming release?
-Would the team consider publishing a technical case study on hardening AI Studio’s frontend security? Given how many developers use the platform, seeing Google’s own CSP implementation would be genuinely educational.

I’m not asking for anything beyond what Google already recommends to external developers. Just hoping the same rigor is applied to the tool that teaches everyone else how to build.

Full audit report with fix recommendations available if useful.

Thank you for your time.