Skip to content
PeekWellThe Handbook
Join now

GDPR Article 32: website security headers

At a glance

EU-15MediumGDPR Art. 32; Art. 83(4)

Peeky reads the browser protections your server sends with every page, checks each one is switched on and tightly set, and estimates the score Mozilla's HTTP Observatory would give.

Last checked against the source:

I need to fix thisI need the rule

The rule

Article 32 of the GDPR is headed security of processing. It’s short, it’s risk-based, and it names no technology. The wording below is taken from the Official Journal text, read at the Publications Office mirror.

Taking into account the state of the art, the costs of implementation and the nature, scope, context and purposes of processing as well as the risk of varying likelihood and severity for the rights and freedoms of natural persons, the controller and the processor shall implement appropriate technical and organisational measures to ensure a level of security appropriate to the risk, including inter alia as appropriate: (a) the pseudonymisation and encryption of personal data.

The measures follow the risk, and “state of the art” moves over time.

The article doesn’t mention security headers. The CNIL’s web security guidance is about TLS on every page and recent versions, which EU-19 covers. Neither of its pages read for this article names Content-Security-Policy or X-Frame-Options. Those headers are widely used practice, not something an authority has asked for. Where the check sits on the score is PeekWell’s own call: medium when a protection is missing or switched off, low when it’s only set loosely.

Penalties sit in two tiers. Article 83(4)(a) places the controller’s and processor’s obligations under Articles 25 to 39, which include Article 32, in the lower tier, with a ceiling of 10 million euros or 2% of worldwide annual turnover. Authorities often cite Article 32 together with Article 5(1)(f), which sits in the upper tier.

What PeekWell checks and how

EU-15 is the check called “Missing or weak security headers”. It asks which browser protections your server sends with each page, whether each one is switched on, and how tightly it’s set. It doesn’t ask whether the site can be broken into, and it can’t answer that.

The scan is automated. It covers everything Mozilla’s HTTP Observatory tests, the free grader many developers already use, and adds Permissions-Policy, which Observatory doesn’t score. Peeky reads six pages twice, a minute apart, where Observatory reads one.

A protection that isn’t in force is reported at medium severity:

  • Content-Security-Policy, X-Frame-Options or the frame-ancestors setting, X-Content-Type-Options, Referrer-Policy or Permissions-Policy is missing, or sent with a value browsers ignore.
  • A content security policy is sent in report-only mode, so browsers block nothing.
  • A sign-in or session cookie has no Secure or HttpOnly flag.
  • The server lets any other website call it with your visitors’ cookies.

When everything is switched on and something is set loosely, that’s reported at low severity:

  • A content security policy that lets scripts run inline or from anywhere, or still allows unsafe-eval.
  • A Referrer-Policy that passes full page addresses to other sites.
  • An HSTS lifetime under six months.
  • Any other cookie without Secure, HttpOnly or SameSite.
  • A script loaded from another website with no integrity value, so the browser can’t tell if the file changed.

Three newer headers, Cross-Origin-Opener-Policy, Cross-Origin-Embedder-Policy and Cross-Origin-Resource-Policy, are written down in the report and never count against you.

The finding ends with an estimate of the score Observatory would give your home page, out of 145, with its letter grade. It’s Peeky’s own estimate, worked out from Observatory’s published scoring. Peeky never runs Observatory and never sends your address to it, so Mozilla’s own number can differ. The report lists each header once, with the pages that sent it and the pages that didn’t.

The scan has limits, and the report says so. It reads what the server sends with the public pages it visited. It also asks your server the one question a browser asks before a script on another site may call it, and writes down the answer. That’s all. It doesn’t port-scan, try to get in where it isn’t allowed, run any security test or open addresses nobody linked to. It can’t see how data is stored or who inside the company can reach it. A Passed means every protection was switched on and tightly set on the pages scanned. It doesn’t say the site complies.

Whether the connection itself is encrypted, with HTTPS, recent TLS and HSTS, is EU-19. UK-15 and US-15 ask this question under British and American law.

Why it matters for a company

None of the decisions below is about a missing header. They show how far Article 32 reaches into what any visitor can do with a website.

The CNIL’s SERGIC decision of 28 May 2019 concerned documents sent by rental applicants. Changing the number in an address returned someone else’s file, with no authentication step. The CNIL called an authentication procedure “une précaution d’usage essentielle”, noted that the flaw was known from March 2018, and recorded the company’s statement that a fix was due to go into production on 17 September 2018. It fined the company 400,000 euros for this flaw and for keeping applicants’ data longer than needed (Articles 32 and 5(1)(e)).

The CNIL found the same pattern in 2019 at an insurance broker: customers’ contracts and driving licences could be read by changing the number at the end of a web address, and passwords were birth dates sent by unencrypted email. In 2023 the Garante fined Cluster S.r.l. after psychiatric reports, uploaded to an event page on its site after a training course, stayed reachable through a plain link with no sign-in.

Headers wouldn’t have closed those gaps. What they do is narrow what a changed script or a framed page can get away with, and these decisions show regulators reading Article 32 against what a stranger could do from outside.

Smaller companies and larger companies

Article 32 has no size threshold, but it’s risk-based, so the same gap weighs differently depending on what the site carries.

In a small company the site usually sits on a hosted builder or a managed plan, and the host’s default sends no security headers at all. Nobody owns the server configuration, so nobody adds them. The cookies a plugin sets often go out without the Secure or HttpOnly flag.

In a larger company there are dozens of hostnames, agency microsites and tag managers that bring in third-party scripts. A content security policy is often loosened or dropped because it broke a tag, and then never tightened again. Headers differ from one host to the next because each team set its own.

Enforcement cases

Published decisions about other companies, listed for context. Each links to the authority's own page. They say nothing about any particular website.

The Officer, squinting at a file.

Larger companies

  • SERGIC

    CNIL (France), 2019€400,000

    The CNIL found that applicants' documents could be read by anyone who changed the number in a web address, with no sign-in required, across 290,870 files in one directory. It treated the missing authentication step as an essential precaution under Article 32. The company had known of the flaw from March 2018, and the company said a fix was due to go into production on 17 September 2018.

    Read the CNIL (France) publication about SERGIC

Smaller companies

  • Insurance broker (CNIL SAN-2019-007)

    CNIL (France), 2019€180,000

    The CNIL found that customers' contracts and documents, such as driving licences, could be read by changing the number at the end of a web address, with no sign-in required. Customers' passwords were their birth dates and were sent to them by unencrypted email. It found an infringement of Article 32.

    Read the CNIL (France) publication about Insurance broker (CNIL SAN-2019-007)
  • Cluster S.r.l.

    Garante (Italy), 2023€18,000

    After a complaint, the Garante found that psychiatric reports with health and judicial data about identifiable people, uploaded to the event page of the company's site after a training course, stayed reachable online through a web link with no authentication step. It found infringements of Articles 5(1)(f) and 32.

    Read the Garante (Italy) publication about Cluster S.r.l.

How to fix it

The headers below are common practice rather than named rules, so start with the ones that break nothing and work towards a content security policy.

  1. Find where your headers are set. It’s usually the web server, the CDN, the host’s dashboard or a middleware file in the code. Check each hostname, since they often differ.
  2. Add the simple ones. X-Content-Type-Options: nosniff and a Referrer-Policy such as strict-origin-when-cross-origin rarely break anything.
  3. Stop other sites framing yours. Set frame-ancestors 'self' in a content security policy, or X-Frame-Options: SAMEORIGIN.
  4. Start a content security policy in report-only mode. List the scripts and services your pages use, read the reports for a week or two, then switch it on.
  5. Tighten the policy. Swap unsafe-inline for a nonce or hashes, list the hosts your scripts come from, and add object-src 'none'. Report-only on its own still shows as a medium finding, because browsers block nothing until you switch the policy on.
  6. Limit browser features. A Permissions-Policy can switch off the camera, microphone and location for pages that don’t need them.
  7. Flag your cookies. Set Secure and HttpOnly on cookies the server sets, the sign-in cookie first, and a SameSite value that fits how each is used.
  8. Pin the scripts you borrow. Add an integrity value to library files loaded from a CDN, or host them yourself. Tag managers and payment scripts change too often to pin, so leave those and name them in your policy.
  9. Check who may call your server. If it answers every caller’s name in Access-Control-Allow-Origin and allows cookies with it, name your own sites instead.
  10. Re-scan. Run a scan again and check each header shows as switched on, on every page. The Observatory estimate in the finding should move up with it.
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header X-Frame-Options "SAMEORIGIN" always;
add_header Content-Security-Policy-Report-Only "default-src 'self'" always;

The snippet is a starting point, not a finished policy. A real content security policy has to list the scripts and services your pages use, and your adviser can say what suits your risk. Peeky reports only what it sees.

Questions

What does GDPR Article 32 require for a website?

Appropriate technical and organisational measures, matched to the risk. The article does not list headers or protocol versions. It asks the company to weigh the state of the art, the cost and the harm that could follow, and regulators fill in the detail through guidance and decisions.

For a website, that guidance is mostly about encrypting the connection, which is EU-19. The rule shows the wording.

Are security headers required by GDPR?

No authority page read for this article names them as a requirement. The CNIL's web security guidance names TLS, and its 2020 sheet mentions HSTS. Headers such as Content-Security-Policy are common practice. Peeky lists a missing one at medium severity and a loosely set one at low, and that weighting is PeekWell's own. The connection itself, HTTPS and HSTS, is a separate check, EU-19.

Is X-Frame-Options required by the GDPR?

No authority page read for this article asks for it by name. X-Frame-Options, or the newer `frame-ancestors` setting, stops other sites from showing your pages inside a frame, which is how a fake page can trick someone into clicking. It's common practice, and Peeky lists a missing one at medium severity.

Does PeekWell check the same things as Mozilla's HTTP Observatory?

Yes. This check covers every area Mozilla's HTTP Observatory tests: the content security policy, cookies, cross-origin sharing, redirects, referrer policy, HSTS, script integrity, and the framing and content-type headers. It adds Permissions-Policy, which Observatory doesn't score.

The finding ends with Peeky's estimate of your Observatory score. Peeky doesn't run Observatory itself, so Mozilla's own number can differ. What PeekWell checks and how has the list.

Filed with

The rule

GDPR (Regulation (EU) 2016/679), Arts. 5(1)(f), 32 and 83(4)

Read the rule (GDPR (Regulation (EU) 2016/679), Arts. 5(1)(f), 32 and 83(4))

A case

SERGIC

CNIL (France), 2019

Read the decision (SERGIC)

Your site

Is your website affected? Join now to find out.

Join now

Sources

The law

  1. GDPR (Regulation (EU) 2016/679), Arts. 5(1)(f), 32 and 83(4), on EUR-Lex
  2. GDPR, Official Journal text at the Publications Office
  3. legislation.gov.uk, UK GDPR Art. 83 (retained text, same numbering as the EU original)

Guidance

  1. CNIL, Sécuriser les sites web, page dated 14 March 2024
  2. CNIL, Sheet no. 6: Secure your websites, applications and servers, 11 June 2020
  3. CNIL, Guide de la sécurité des données personnelles (25 sheets, including Sécuriser les sites web)
  4. CNIL, Sécurité des sites web : les 5 problèmes les plus souvent constatés, 27 June 2018

Decisions and cases

  1. CNIL, Deliberation SAN-2019-005 of 28 May 2019 (SERGIC), on Legifrance
  2. CNIL, Deliberation SAN-2019-007 of 18 July 2019, on Legifrance
  3. Garante, Provvedimento del 16 novembre 2023 (Cluster S.r.l.) [doc. web 9960948]

Further reading

  1. CNIL, Quelles sanctions peuvent être prononcées par la CNIL

Last checked against the source:

For information only. Not legal advice.