---
title: 'New XSS Protection Available in Grav 1.5.2'
url: 'https://getgrav.org/blog/new-xss-protection'
markdown: 'https://getgrav.org/blog/new-xss-protection.md'
date: '2018-10-01'
description: 'Grav 1.5.2 and the accompanying Admin plugin 1.8.10 provide an important new security feature. Grav now includes a powerful new security checking functionality that can be used from both the CLI and the Admin plugin. From the command line you can simply run bin/grav security and Grav will run thro…'
taxonomy:
  category:
    - blog
  tag:
    - journal
    - xss
    - security
---

journal  1 min 

#  New XSS Protection Available in Grav 1.5.2 

Admin and CLI support included...

 ![Andy Miller](https://getgrav.org/user/themes/event-horizon/images/authors/andy.png) Andy Miller · OCT 1, 2018 

 [journal](https://getgrav.org/blog?q=journal) [xss](https://getgrav.org/blog?q=xss) [security](https://getgrav.org/blog?q=security) 

**Grav 1.5.2** and the accompanying **Admin plugin 1.8.10** provide an important new security feature. Grav now includes a powerful new security checking functionality that can be used from both the CLI and the Admin plugin.

From the command line you can simply run `bin/grav security` and Grav will run through all your pages and display a list of pages with potential XSS vulnerabilities.

![](https://getgrav.org/user/pages/03.blog/new-xss-protection/xss-cli.png?g-4acd4937)

From the Grav admin, you will get a notice at the top of the **Content** tab if a potential XSS issue is detected.

![](https://getgrav.org/user/pages/03.blog/new-xss-protection/xss-admin.png?g-4acd4937)

By default any non **super admins** will not be able to create or edit pages with XSS issues. A whitelist of user permissions which can ignore the XSS warnings can be edited in the **Configuration**  **Security** panel. You can also disable a particular XSS rule or tweak the list of **Dangerous HTML Tags**:

![](https://getgrav.org/user/pages/03.blog/new-xss-protection/xss-security.png?g-4acd4937)

We plan on adding even more reporting functionality in upcoming release of Grav. This could include a scheduled job that runs daily and emails you any new XSS issues found, as well as a dedicated section of the admin that will show information similar to the CLI command, and list all current known XSS issues on your site.

 ![Andy Miller](https://getgrav.org/user/themes/event-horizon/images/authors/andy.png) 

Andy Miller

 Creator and lead developer of Grav CMS, with over 30 years in software development and 20+ years in open source, dating back to his years as a core member of the Joomla CMS development team. 

 [Threads](https://www.threads.net/@rhukster) [Bluesky](https://bsky.app/profile/rhuk.bsky.social) 

 [  Back to blog ](https://getgrav.org/blog) [  ](https://twitter.com/intent/tweet?url=https%3A%2F%2Fgetgrav.org%2Fblog%2Fnew-xss-protection&text=New%20XSS%20Protection%20Available%20in%20Grav%201.5.2) [   ](https://getgrav.org/blog/new-xss-protection) 

← NEWER

Vote for Grav in the 2018 CMS Critic People's Choice Awards

[← NEWER Vote for Grav in the 2018 CMS Critic People's Choice Awards](https://getgrav.org/blog/cms-critic-award-finalists-2018)

OLDER →

Raspberry Pi Dev Setup with Nginx + PHP7

[OLDER → Raspberry Pi Dev Setup with Nginx + PHP7](https://getgrav.org/blog/raspberrypi-nginx-php7-dev)

Related posts

## Keep reading

 grav2 OCT 31 security release 

### Grav and Anthropic's OSS Scanner: 99 Findings, Fixed and Released

On October 22nd I signed Grav up for Anthropic's OSS Scanner. It's an opt-in program: Anthropic builds an open source project in an isolated machine, points its models at…

 ![Andy Miller](https://getgrav.org/user/themes/event-horizon/images/authors/andy.png) Andy Miller  6 mins  

[Grav and Anthropic's OSS Scanner: 99 Findings, Fixed and Released](https://getgrav.org/blog/oss-scanner-security-releases)

 grav2 JUN 17 security twig content 

### Grav 2.0: Twig in Content and the New Security Sandbox

If you've moved a site to Grav 2.0 and a bit of {{ ... }} you had sitting in a page suddenly shows up as literal text instead of rendering, this post is for you. We chang…

 ![Andy Miller](https://getgrav.org/user/themes/event-horizon/images/authors/andy.png) Andy Miller  10 mins  

[Grav 2.0: Twig in Content and the New Security Sandbox](https://getgrav.org/blog/grav-2-twig-content-security)

 release JAN 19 

### Grav 1.7 Released!

After 30 developmental releases (both Beta and RC), and nearly 2 full years in development, we're proud to unleash our most significant release ever! Grav 1.7 is a massiv…

 ![Andy Miller](https://getgrav.org/user/themes/event-horizon/images/authors/andy.png) Andy Miller  3 mins  

[Grav 1.7 Released!](https://getgrav.org/blog/grav-1.7-released)

---

## Navigation

- Parent: [Grav - Development Blog](https://getgrav.org/blog.md)
- Previous: [Vote for Grav in the 2018 CMS Critic People's Choice Awards](https://getgrav.org/blog/cms-critic-award-finalists-2018.md)
- Next: [Raspberry Pi Dev Setup with Nginx + PHP7](https://getgrav.org/blog/raspberrypi-nginx-php7-dev.md)
