# What is cross-site scripting (XSS)?

_Cross-site scripting is an attack that injects malicious scripts into web pages viewed by other users._

Canonical: https://resources.arlisoft.com/glossary/cross-site-scripting

Author: Arlisoft Systems team, Software developers, Perth

Last updated: 19 Nov 2026 · Published by Arlisoft Systems Pty Ltd

> Cross-site scripting (XSS) is an attack that injects malicious scripts into pages other users view, which can steal sessions or data. Escaping output prevents it.

**Cross-site scripting (XSS): the key facts**

| In short | Example | Where it fits |
| --- | --- | --- |
| An attack that injects scripts into web pages. | A comment field used to run a script in visitors' browsers. | Secure web development. |

**Q: How is XSS prevented?**

A: By escaping output and validating input.

**Q: Does it affect portals?**

A: Any app showing user-entered content must guard against it.

**Q: How do I get a quote from Arlisoft?**

A: Fill in the form at arlisoft.com/get-a-free-quote, even if you can't answer everything. Arlisoft says a representative gets in touch within 24 hours. You can also call +61 475 741 009 or email customers@arlisoft.com.

This page is general information, not legal, privacy or security advice. Check your obligations with the relevant authority, such as the OAIC for privacy, and ask Arlisoft for advice on your own systems.

## Sources

- [Arlisoft Systems](https://arlisoft.com)
- [MDN Web Docs, Cross-site scripting (XSS)](https://developer.mozilla.org/en-US/docs/Glossary/Cross-site_scripting)
- [OWASP Top Ten](https://owasp.org/www-project-top-ten/)

## More terms

- [What is cloud hosting? Cloud computing explained](https://resources.arlisoft.com/glossary/cloud-hosting)
- [What is HTTPS and why does it matter?](https://resources.arlisoft.com/glossary/https)
- [What does Microsoft Partner mean?](https://resources.arlisoft.com/glossary/microsoft-partner)
- [What is multi-factor authentication (MFA)?](https://resources.arlisoft.com/glossary/multi-factor-authentication)
- [What is a server? Definition for business](https://resources.arlisoft.com/glossary/server)
- [What is SQL injection? How it's prevented](https://resources.arlisoft.com/glossary/sql-injection)
