What is the Security view?
The Security view shows security findings for a single project. It brings together results from four automated security scanners that analyze different parts of your application:- RLS analysis: Reviews row-level security policies on database tables
- Database security check: Reviews database schema and RLS configuration for unsafe patterns
- Code security review: Analyzes application code for common vulnerabilities
- Dependency audit: Scans
npmdependencies for known security vulnerabilities
+ button next to Preview.
Why use the Security view?
- Catch issues early
Security issues are easier to fix during development than after deployment. The Security view helps identify common problems such as misconfigured database access, insecure code patterns, or vulnerable dependencies before your app goes live. - Focus on what matters
Not all security findings carry the same risk. Findings are categorized by severity so you can prioritize critical issues first and review lower-risk recommendations later. - Save time with guided fixes
Many findings include automated remediation options or clear guidance. You can ask Lovable to fix specific issues directly and review the resulting changes. - Track security as your project evolves
As your project changes, previous scan results may become outdated. The Security view clearly shows when scans need to be refreshed so you always know your project’s current security state.
Improving scan accuracy with context
Click Add context to describe your project’s security context. This helps AI scanners tailor recommendations and reduce false positives. Useful context includes:- The purpose of the project
- Who uses the app
- Whether data is sensitive
- Whether the environment is development, staging, or production
Understanding scan status
The scan status at the top of the Security view shows whether your security results reflect your latest changes.- Up to date: All scanners reflect the current version of your project.
- Out of date: One or more scanners have not run since the project changed.
- Scanning: Scans are currently running.
Updating scans
Click Update to refresh all outdated scanners. This action is free and does not consume credits. Only scanners that need updating will run.The Code security review scanner only runs when you click Update and does not run automatically.
- Before publishing
- After significant code or database changes
- When adding or updating dependencies
- Periodically for production applications
Addressing security findings
All findings appear under Detected issues and are grouped by severity level. If any errors exist, the view defaults to showing them first.- Error: Critical problems that need your attention right away
- Warning: Issues you should review and fix if necessary
- Info: Suggestions to consider implementing
- Which scanner produced the finding
- A detailed explanation of the issue
- Why the issue matters for security
- Suggested remediation steps
- Fix a specific finding
Use the inline chat within a finding to ask Lovable to analyze or fix that issue. This action is free and does not consume credits. - Fix multiple findings at once
Use Try to fix all to attempt automatic remediation for all findings in the current filter. This action is free and does not consume credits. Automatic fixes require the Code security review scan to be up to date. Always review the changes Lovable makes and test them thoroughly.
Advanced features
When Advanced view is enabled, the Security view exposes additional tools and details for deeper inspection and control.Per-scanner status
Toggle Advanced view and click the scan status badge to see detailed information about each scanner, including:- When each scanner last ran
- Whether results are up to date
- Which scanners are currently outdated
Managing dependencies
With Advanced view enabled, the Security view shows a Project dependencies section listing all productionnpm dependencies and known vulnerabilities.
For each dependency, you can see:
- Package name and version
- Vulnerability counts by severity, including critical, high, and medium
- A Fix here action for vulnerable packages
- Filter to show only vulnerable packages
- Trigger a fresh dependency audit
- Download a JSON report of all dependencies and vulnerabilities for audits or compliance reviews
Best practices for using the Security view
The Security view is designed for ongoing use throughout development, not just a final check before publishing. The following best practices reflect how builders commonly use it.- Keep security findings current
Review findings regularly and refresh scans when results become outdated, especially after adding features, changing database access, or updating dependencies. - Prioritize critical issues
Address error-level findings before warnings or informational items. Critical findings often represent exploitable vulnerabilities. - Use both scanning approaches
Use automated scans in the Security view for structured checks and targeted fixes. Complement them by periodically asking Lovable to “review my app’s security” in chat for a narrative analysis that may catch issues the automated scanners miss. - Manage dependency risk proactively
Regularly review the dependency section and address high-severity vulnerabilities promptly. - Review and verify fixes
Automated fixes can save time, but always review the changes and test your app before continuing development. - Be deliberate when ignoring findings
Ignore findings only when they clearly do not apply. Revisit ignored findings as your project evolves. - Continue monitoring after publishing
Publishing is not the end of security work. Monitor new findings as your app changes over time.
FAQ
How do I access the Security view?
How do I access the Security view?
You’ll find the Security tab inside any Lovable project by clicking the
+ button next to Preview.What does outdated mean?
What does outdated mean?
A scanner’s results are outdated when your project has changed since the last scan. Click Update to refresh results. Actions on outdated findings are disabled to prevent acting on stale information.
What is the difference between Update and asking Lovable to review security?
What is the difference between Update and asking Lovable to review security?
Update refreshes the automated security scanners and updates the findings shown in the Security view. This action is free and does not consume credits.Asking Lovable to review your app’s security in chat triggers a separate AI-driven review that provides a narrative report and recommendations. It does not update scanner results or scan status. Conversational security reviews in chat consume credits.Both approaches are complementary.
Can I use the Security view for published projects?
Can I use the Security view for published projects?
Yes. Continue monitoring security after publishing, especially when adding features or updating dependencies.
What happens if I publish with critical findings?
What happens if I publish with critical findings?
Lovable warns you before publishing if critical issues exist. You can choose to publish anyway, but this is strongly discouraged since critical findings typically represent exploitable vulnerabilities.