Skip to main content

firebase-storage

Facilitates file uploads and downloads using Firebase Cloud Storage, ensuring secure access and error handling.

Install this skill

or
43/100

Security score

The firebase-storage skill was audited on Feb 9, 2026 and we found 25 security issues across 4 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 82

Template literal with variable interpolation in command context

SourceSKILL.md
82const url = await uploadFile(file, `uploads/${userId}/${file.name}`);
medium line 337

Template literal with variable interpolation in command context

SourceSKILL.md
337const publicUrl = `https://storage.googleapis.com/${adminStorage.name}/${destination}`;
medium line 525

Template literal with variable interpolation in command context

SourceSKILL.md
525setError(`File size must be less than ${maxSize / 1024 / 1024}MB`);
medium line 534

Template literal with variable interpolation in command context

SourceSKILL.md
534const storageRef = ref(storage, `${path}/${Date.now()}-${file.name}`);
medium line 575

Template literal with variable interpolation in command context

SourceSKILL.md
575{uploading ? `Uploading... ${Math.round(progress)}%` : 'Upload File'}
medium line 622

Template literal with variable interpolation in command context

SourceSKILL.md
622const storageRef = ref(storage, `${path}/${Date.now()}-${file.name}`);
medium line 665

Template literal with variable interpolation in command context

SourceSKILL.md
665{uploading ? `${Math.round(progress)}%` : '+'}
medium line 337

Curl to non-GitHub URL

SourceSKILL.md
337const publicUrl = `https://storage.googleapis.com/${adminStorage.name}/${destination}`;
low line 27

Access to .env file

SourceSKILL.md
27apiKey: process.env.NEXT_PUBLIC_FIREBASE_API_KEY,
low line 28

Access to .env file

SourceSKILL.md
28authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN,
low line 29

Access to .env file

SourceSKILL.md
29projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID,
low line 30

Access to .env file

SourceSKILL.md
30storageBucket: process.env.NEXT_PUBLIC_FIREBASE_STORAGE_BUCKET,
low line 48

Access to .env file

SourceSKILL.md
48projectId: process.env.FIREBASE_PROJECT_ID,
low line 49

Access to .env file

SourceSKILL.md
49clientEmail: process.env.FIREBASE_CLIENT_EMAIL,
low line 50

Access to .env file

SourceSKILL.md
50privateKey: process.env.FIREBASE_PRIVATE_KEY?.replace(/\\n/g, '\n'),
low line 52

Access to .env file

SourceSKILL.md
52storageBucket: process.env.FIREBASE_STORAGE_BUCKET,
low line 337

External URL reference

SourceSKILL.md
337const publicUrl = `https://storage.googleapis.com/${adminStorage.name}/${destination}`;
low line 472

External URL reference

SourceSKILL.md
472"origin": ["https://your-domain.com", "http://localhost:3000"],
low line 717

External URL reference

SourceSKILL.md
717| **#2** | CORS errors | Browser blocked cross-origin request | Configure CORS with `gsutil cors set` | [Docs](https://firebase.google.com/docs/storage/web/download-files#cors_configuration) |
low line 784

External URL reference

SourceSKILL.md
784- **Storage Overview**: https://firebase.google.com/docs/storage
low line 785

External URL reference

SourceSKILL.md
785- **Web Get Started**: https://firebase.google.com/docs/storage/web/start
low line 786

External URL reference

SourceSKILL.md
786- **Upload Files**: https://firebase.google.com/docs/storage/web/upload-files
low line 787

External URL reference

SourceSKILL.md
787- **Download Files**: https://firebase.google.com/docs/storage/web/download-files
low line 788

External URL reference

SourceSKILL.md
788- **Security Rules**: https://firebase.google.com/docs/storage/security
low line 789

External URL reference

SourceSKILL.md
789- **Admin SDK**: https://firebase.google.com/docs/storage/admin/start
Scanned on Feb 9, 2026
View Security Dashboard
Installation guide →