Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: escape html to prevent XSS #852

Closed
wants to merge 1 commit into from
Closed

Conversation

wesbillman
Copy link
Collaborator

Fixes #838

Copy link
Collaborator

@alecthomas alecthomas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this is correct is it? Did you test it? It looks like this will escape the entire response. I think XSS is more about when fragments from other sources are injected into existing HTML without them being escaped.

I don't think FTL can do anything about XSS at the transport layer. If we wanted to do something, we'd need to provide our own HTML templating which prevented XSS.

@wesbillman
Copy link
Collaborator Author

Ah gotcha. Makes sense. I'll close this for now as it definitely doesn't solve the issue.

@wesbillman wesbillman closed this Jan 31, 2024
@wesbillman wesbillman deleted the add-xss-protection branch January 31, 2024 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add library for going through filters to scrub XSS leaks etc.
2 participants