
ControlPlane AI Security Team Responsibly Discloses Reflected Scripting on Find a Grant Error Pages

A ControlPlane security research note. Reported and resolved through the Cabinet Office’s vulnerability disclosure programme. Published with coordinated timing after remediation.
Summary
ControlPlane's AI security research team identified reflected cross-site scripting (XSS) (opens in a new tab) on two publicly reachable error pages of the Cabinet Office's Find a Grant and Apply for a Grant services. Each page read a block of JSON from the specified web address and used part of it to set the destination of a link shown to the visitor. Supplying a script instruction to that destination produced a page that ran the supplied code when the link was clicked. The Cabinet Office disclosure programme confirmed that a verified and deployed fix resolved the report.
Once reported, the Cabinet Office confirmed the issue and remediated it. Severity was assessed as Medium, CVSS 6.1 (CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N), classified under CWE-79 (Cross-site Scripting).
Background
When something goes wrong partway through an application, the service sends people to an error page. Two such pages exist: one for administrators and one for applicants. Both are reachable without signing in, and both are ordinary destinations that users reach in normal use.
The pages are configurable. The wording shown and the link offered to help the visitor continue are passed in via a query parameter rather than fixed on the page.
The finding
The serviceErrorProps parameter carries a JSON object containing the message to display and the attributes of a link. The link's destination was written into the page's anchor element with no check on what kind of address it was.
A link normally points to another page. It can also carry an instruction for the browser to run code. Nothing on either page distinguished between the two.
Testing against the live service confirmed that the destination was reproduced exactly as supplied on both the administrator and applicant pages. In a browser, clicking the resulting link ran the supplied code in the service's own origin.
The administrator page required one additional parameter so that the destination was written out unaltered. The applicant page was rendered through a framework link component, which passed the value through unchanged.
Root cause
The destination of a link was treated as display data. The service checked the shape of the JSON but not the meaning of its values. OWASP's guidance on this class of flaw (opens in a new tab) explains why a value placed in a URL attribute needs a check suited to that position; for a link, this means restricting the permitted schemes.
Potential impact
A visitor had to follow a crafted link and then click the link on the page they arrived at. That is a real limit on the flaw.
Against it, the lure was unusually credible. The pages carry genuine GOV.UK branding on the genuine service address, and they're exactly where people are sent when something goes wrong, so an error page appearing mid-application is unremarkable.
Testing established that the script ran in the service's origin. The administrator's authentication cookie was not readable. It carries HttpOnly, and the test confirmed it did not appear. This was therefore not a route to copying someone's session.
What remained available was action within a session the visitor already held, and convincing content presented under a trusted government address. Neither was exercised.
Coordinated disclosure and remediation
ControlPlane reported both instances through the Cabinet Office disclosure programme, with the request and response transcripts and the browser evidence.
The programme triaged the report within three days and assessed it as Medium. ControlPlane had proposed High on the basis of script execution originating from a government-reachable location without authentication. The difference was not contested.
The programme reported in August that the report was with the relevant team, and confirmed on 30 September 2026, that a fix had been verified and deployed, and stated its intention to record an acknowledgement in the service's published thanks file.
The programme didn’t identify the deployed change.
Disclosure timeline. Times below are UTC, rounded to the nearest minute where available.
24 June 2026, approx. 21:00 to 21:50 UTC: An unattended agent doing discovery work confirmed reflection and script execution against the live service
26 June 2026, 17:29 UTC: ControlPlane triaged the agent’s finding and prepared the report
26 June 2026, 19:03 UTC: Report submitted
29 June, 2026, 12:15 UTC: Report triaged; severity assessed as Medium
4 August 2026, 11:17 UTC: The programme confirmed the report was with the delivery team
30 September 2026, 14:07 UTC: The programme confirmed a verified and deployed fix, and the report was resolved
Responsible testing and data handling
Testing followed the GC3 Vulnerability Disclosure Policy (opens in a new tab), which anyone who finds a vulnerability in a public sector service can use. Proof used a page-title change and the service's own address rather than private data. Cookie values observed during testing were redacted and not reused. No application account was accessed, and no grant application data was read or altered.
The broader lesson
A link's destination is not text. Wherever a value supplied by the visitor becomes a URL, restrict it to the schemes the feature actually needs and reject the rest. Confirming that a value is well-formed JSON says nothing about whether its contents are safe in the position they’re used.
Keep the content of error pages fixed where possible. A page that takes its wording and links from the address bar lets whoever composes the link decide what it shows.
Two settings the server sends to the browser limit what a script-injection flaw like this can do. A Content Security Policy (opens in a new tab), sent as a response header, tells the browser which scripts it may run. The HttpOnly attribute (opens in a new tab) on a cookie stops scripts from reading it. Neither replaces fixing the flaw. Both are good practice for any service.
About this work
ControlPlane is an AI-native cybersecurity consultancy specialising in cloud native security, secure software supply chains, and the assurance regimes that regulated organisations depend on. We help teams design and secure platforms and non-human identities without sacrificing usability. If you are building cloud services that must remain both open and safe, we would be happy to talk (opens in a new tab).
Related publications
View allControlPlane AI Security Team Responsibly Discloses Waste-Carrier Deregistration Weakness
ControlPlane's AI security research team found that the Environment Agency's waste-carrier cancellation form accepted a public registration number without the secret token intended to authorise cancellation.

ControlPlane AI Security Team Responsibly Discloses Companies House's Emergency Authentication Code Vulnerability
ControlPlane's AI security research team identified an authorisation gap in the Companies House Emergency Authentication Code (EAC) workflow.

ControlPlane AI Security Team Reports Cross-Account Access in the General Aviation Reporting Service
ControlPlane's AI security research team found that the Home Office's General Aviation Report service could reject an attempt to select someone else's report yet leave it available for subsequent reads and changes.

Speak to an expert
Engage with world-leading AI and cloud security specialists