-
http-header-auditor v1.2.1
Stablereleased this
2026-10-17 01:50:05 -07:00 | 11 commits to master since this release- Scores now match the Mozilla HTTP Observatory table (checked on 18 header profiles): a CSP with
unsafe-inlinefor styles only is no longer penalised as a script hole (it cost -20 and the grade),unsafe-evalalone is -10, a CSP withoutunsafe-*earns the +5/+10 bonus, cookies count their worst problem (session cookie without HttpOnly -30, without Secure -40, less under HSTS) instead of a capped sum. - Clickjacking:
X-Frame-Optionsvalues other than DENY/SAMEORIGIN (browsers ignore them) andframe-ancestors *no longer count as protection. Strict-Transport-Security: max-age=0(HSTS switched off) is treated as no HSTS; an unrecognised Referrer-Policy value is flagged.- Session-cookie detection uses name words, not substrings:
consider/author_prefare no longer "session cookies", and CSRF cookies (csrftoken,XSRF-TOKEN) that frameworks need scripts to read aren't flagged. - Tests: Observatory-table accuracy suite, mutation testing (nightly), claims ledger.
Install
pipx install git+https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor.git@v1.2.1 # or the wheel attached to this release: pipx install https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor/releases/download/v1.2.1/http_header_auditor-1.2.1-py3-none-any.whl # or the single file (stdlib-only Python 3): curl -fsSLO https://git.canutethegreat.com/CanuteTheGreat/http-header-auditor/releases/download/v1.2.1/http_header_auditor.pySHA-256
7288184b2c5ab4cda8b5548465d622cb1488fad61bb4ade2a29303e6e630acbc http_header_auditor.py 2f4ba049242b952bc34247f2732b08b74d39b8d09415413a8fa4e6c9681c1764 http_header_auditor-1.2.1-py3-none-any.whl e490915cb662595140ec8a23aceb85a1a65e55e4b48b9fd887b0ca9b68ff55e2 http_header_auditor-1.2.1.tar.gzDownloads
-
Source code (ZIP)
10 downloads
-
Source code (TAR.GZ)
13 downloads
- Scores now match the Mozilla HTTP Observatory table (checked on 18 header profiles): a CSP with