How to protect your Web applications from XSS

The W3C SWAG (Security Web Application Guidelines) Community Group, launched in June 2024, aims to simplify security features in web app development. SWAG’s mission is to enhance web app security by creating best practices for developers and fostering collaboration. A key output includes videos on configuring CSP and Trusted Types, which mitigate XSS. Based on Google’s adoption experience, these resources offer tools to help developers securely configure these protections with minimal effort.


This content originally appeared on W3C - Blog and was authored by Simone Onofri, W3C Security Lead, Daniel Appelquist, W3C SWAG CG Chair

The W3C Security Web Application Guidelines (SWAG) Community Group seeks to make it easier for developers to leverage security features that are often complex in their application development.

SWAG launched in June 2024 after the W3C Workshop "Secure the Web Forward". One of the workshop’s findings, and some accompanying developer research presented there, is that web developers are generally unsure about security and their role in ensuring that web apps are secure. This group’s mission, therefore, is “to increase the overall security of web application development by writing security best practices for web developers and providing a platform for stakeholder collaboration.” In the same manner as that workshop, SWAG is intended to be connected to other organizations that share a similar mission, such as the OpenSSF Best Practices Group, OpenJS Foundation, and OWASP.

One of the first results of SWAG’s efforts is a set of videos addressing the complexities of Content Security Policy and Trusted Types. These two features can be used as effective XSS mitigations but, unfortunately, are difficult to configure due to the breadth of the threats they mitigate and the fact that they are time-consuming to debug.

Six talks introduce open-source tooling developed from Google’s large-scale CSP and Trusted Types adoption work. These tools, which serve as a natural interface between developers and the specifications, provide actionable help in a tight feedback loop during the development cycle to reduce the uncertainty and complexity of configuring these best-in-class web security mitigations against XSS. The experience of Google engineers who have shipped strict CSP and Trusted Types to hundreds of web applications is distilled into tools that provide best practices and gentle guidance toward a more secure codebase.

SWAG meets every week and those talks were recorded during the meeting of 11 November 2024. The 6 videos are available via the "Security at W3C" playlist on W3C's YouTube channel.


This content originally appeared on W3C - Blog and was authored by Simone Onofri, W3C Security Lead, Daniel Appelquist, W3C SWAG CG Chair


Print Share Comment Cite Upload Translate Updates
APA

Simone Onofri, W3C Security Lead, Daniel Appelquist, W3C SWAG CG Chair | Sciencx (2025-03-06T19:16:00+00:00) How to protect your Web applications from XSS. Retrieved from https://www.scien.cx/2025/03/06/how-to-protect-your-web-applications-from-xss/

MLA
" » How to protect your Web applications from XSS." Simone Onofri, W3C Security Lead, Daniel Appelquist, W3C SWAG CG Chair | Sciencx - Thursday March 6, 2025, https://www.scien.cx/2025/03/06/how-to-protect-your-web-applications-from-xss/
HARVARD
Simone Onofri, W3C Security Lead, Daniel Appelquist, W3C SWAG CG Chair | Sciencx Thursday March 6, 2025 » How to protect your Web applications from XSS., viewed ,<https://www.scien.cx/2025/03/06/how-to-protect-your-web-applications-from-xss/>
VANCOUVER
Simone Onofri, W3C Security Lead, Daniel Appelquist, W3C SWAG CG Chair | Sciencx - » How to protect your Web applications from XSS. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/03/06/how-to-protect-your-web-applications-from-xss/
CHICAGO
" » How to protect your Web applications from XSS." Simone Onofri, W3C Security Lead, Daniel Appelquist, W3C SWAG CG Chair | Sciencx - Accessed . https://www.scien.cx/2025/03/06/how-to-protect-your-web-applications-from-xss/
IEEE
" » How to protect your Web applications from XSS." Simone Onofri, W3C Security Lead, Daniel Appelquist, W3C SWAG CG Chair | Sciencx [Online]. Available: https://www.scien.cx/2025/03/06/how-to-protect-your-web-applications-from-xss/. [Accessed: ]
rf:citation
» How to protect your Web applications from XSS | Simone Onofri, W3C Security Lead, Daniel Appelquist, W3C SWAG CG Chair | Sciencx | https://www.scien.cx/2025/03/06/how-to-protect-your-web-applications-from-xss/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.