Skip to main content

Utility functions to prevent possible XSS attack on django/mako templates

Project description

Utilities to prevent possible Cross Site Scripting (XSS) attacks on Django/Mako templates.

Overview

This repo houses utility functions to protect edx codebase (Python, Javascript and other templating engine eg django/mako) against possible XSS attacks. Helper code include html & js escaping filters for django and mako templates. For more information, please read Preventing Cross Site Scripting Vulnerabilities.

Documentation

The full documentation is in the docs directory TODO: Publish to https://xss-utils.readthedocs.org.

License

The code in this repository is licensed under the AGPL 3.0 unless otherwise noted.

Please see LICENSE.txt for details.

How To Contribute

Contributions are very welcome.

Please read How To Contribute for details.

PR description template should be automatically applied if you are sending PR from github interface; otherwise you can find it it at PULL_REQUEST_TEMPLATE.md

Issue report template should be automatically applied if you are sending it from github UI as well; otherwise you can find it at ISSUE_TEMPLATE.md

Reporting Security Issues

Please do not report security issues in public. Please email security@openedx.org.

Getting Help

Have a question about this repository, or about Open edX in general? Please refer to this list of resources if you need any assistance.

Change Log

Unreleased

[0.8.0] - 2025-04-17

  • Add support for django 5.2.

[0.7.1] - 2025-02-28

  • Fix to PyPI publishing workflow.

[0.7.0] - 2025-02-28

  • Drop support for Python 3.8

[0.6.0] - 2024-04-22

  • Test and declare Python 3.11 and 3.12 compatibility.

[0.5.0] - 2023-08-01

[0.4.0] - 2022-01-20

Added

  • Added Support for Django40

Dropped

  • Dropped Django22, 30, 31 from CI

[0.3.0] - 2021-07-07

Added

  • Support for django3.0, 3.1, 3.2

[0.1.0] - 2018-08-17

Added

  • Utilities to enable html escaping, preventing Cross Site Scripting (XSS) attacks in Django templates.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xss_utils-0.8.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xss_utils-0.8.0-py2.py3-none-any.whl (17.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xss_utils-0.8.0.tar.gz.

File metadata

  • Download URL: xss_utils-0.8.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xss_utils-0.8.0.tar.gz
Algorithm Hash digest
SHA256 ed03a47ea98b9c63e9d9a0997939c9c1216f0e7aff12aeb365b125d8f50258eb
MD5 7fbd1d4fe9a5a39bb440c373f25b19bb
BLAKE2b-256 075fb8db214b22d34a8931dd60dbf4efef53b0d86e1cb126b2434dcf631e98ef

See more details on using hashes here.

File details

Details for the file xss_utils-0.8.0-py2.py3-none-any.whl.

File metadata

  • Download URL: xss_utils-0.8.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for xss_utils-0.8.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c29e597a4d83f3453ce50827a9d8c7fb11e3ec57db40675699a6c678b83c0083
MD5 fedcf030257aa0706375b16ca415b060
BLAKE2b-256 cd11cdeaad870f1138d54e2a3537436a27f297524de745b4f740491414587e07

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page