GetPageSpeed security advisory
GPSA-2026-0005: nginx-module-pagespeed: cross-site scripting through CSS written into HTML pages
Moderate (source: github.com) · issued 2026-11-14 · updated 2026-11-18 · revision 2
PageSpeed could write markup into a page when it inlined, summarized or rewrote CSS. Updated builds never write CSS that holds a "<" into HTML.
Several PageSpeed filters write CSS text into the HTML page: inline_css replaces a stylesheet link with a <style> element, prioritize_critical_css writes critical CSS and copies the full CSS into a trailing <noscript> block, and rewrite_css rewrites the text of inline <style> elements. They only refused CSS containing a closing style tag. That check was not enough. rewrite_css decodes CSS escapes, so a rule such as *[title="\3C/style\3E"] inside an inline <style> was written back as a raw </style>, ending the element and turning the rest of the text into live markup. prioritize_critical_css copied <style> text into a <noscript> block, where a "</noscript>" inside a CSS comment ends the block. A stylesheet linked where the browser does not parse <style> as plain text could do the same. Sites are exposed when someone other than the site owner can influence CSS text on a page, for example custom CSS fields in a CMS or user profile, and one of the filters above is enabled (rewrite_css is part of the default CoreFilters). Updated builds leave such CSS exactly as it was: a stylesheet holding a "<" stays external, and an inline <style> holding one is not rewritten, summarized or copied. As a side effect, stylesheets that use "<" in valid CSS (Tailwind CSS 4 @property syntax, media range queries) are no longer inlined; they are still served and optimized as external files. Stable and mainline builds for EL7 and Amazon Linux 2 carry the complete fix from release 77, using module 1.14.36.4 and the glibc-2.17 sec4 PageSpeed library. Earlier releases on those systems remain affected. The dormant Plesk channel remains excluded: no new fixed Plesk release is claimed. Where a fixed build is unavailable, disable rewrite_css, inline_css and prioritize_critical_css if untrusted parties can influence CSS on your pages.
After updating: upgrade nginx in place (service nginx upgrade) or restart nginx; a reload does not load the new module.
Fixed packages
Every build listed in the signed repository metadata (yum updateinfo info GPSA-2026-0005). mitigation means a backported fix, not the complete upstream change.
| Product | Shape | Repository | Fix | First available fixed build |
|---|---|---|---|---|
| nginx-module-pagespeed | stable | amzn/2/x86_64 | complete | 1:1.30.6+1.14.36.4-77.amzn2.gps and later6 packagesnginx-module-pagespeed-1.30.6+1.14.36.4-77.amzn2.gps.x86_64.rpm |
| nginx-module-pagespeed | stable | redhat/7/x86_64 | complete | 1:1.30.6+1.14.36.4-77.el7.gps and later6 packagesnginx-module-pagespeed-1.30.6+1.14.36.4-77.el7.gps.x86_64.rpm |
| nginx-module-pagespeed | mainline | amzn/2/mainline/x86_64 | complete | 1:1.31.8+1.14.36.4-77.amzn2.gps and later6 packagesnginx-module-pagespeed-1.31.10+1.14.36.4-77.amzn2.gps.x86_64.rpm |
| nginx-module-pagespeed | mainline | redhat/7/mainline/x86_64 | complete | 1:1.31.8+1.14.36.4-77.el7.gps and later6 packagesnginx-module-pagespeed-1.31.10+1.14.36.4-77.el7.gps.x86_64.rpm |
| nginx-module-pagespeed | stable | redhat/8/x86_64 | complete | 1:1.30.6+1.14.36.3-75.el8.gps and later8 packagesnginx-module-pagespeed-1.30.6+1.14.36.3-75.el8.gps.x86_64.rpm |
| nginx-module-pagespeed | stable | amzn/2023/x86_64 | complete | 1.30.6+1.14.36.3-75.amzn2023.gps and later8 packagesnginx-module-pagespeed-1.30.6+1.14.36.3-75.amzn2023.gps.x86_64.rpm |
| nginx-module-pagespeed | stable | fedora/44/x86_64 | complete | 1.30.6+1.14.36.3-75.fc44.gps and later8 packagesnginx-module-pagespeed-1.30.6+1.14.36.3-75.fc44.gps.x86_64.rpm |
| nginx-module-pagespeed | stable | fedora/45/x86_64 | complete | 1.30.6+1.14.36.3-75.fc45.gps and later8 packagesnginx-module-pagespeed-1.30.6+1.14.36.3-75.fc45.gps.x86_64.rpm |
| nginx-module-pagespeed | stable | redhat/10/x86_64 | complete | 1.30.6+1.14.36.3-75.el10.gps and later8 packagesnginx-module-pagespeed-1.30.6+1.14.36.3-75.el10.gps.x86_64.rpm |
| nginx-module-pagespeed | stable | redhat/9/x86_64 | complete | 1.30.6+1.14.36.3-75.el9.gps and later8 packagesnginx-module-pagespeed-1.30.6+1.14.36.3-75.el9.gps.x86_64.rpm |
| nginx-module-pagespeed | mainline | redhat/8/mainline/x86_64 | complete | 1:1.31.8+1.14.36.3-75.el8.gps and later8 packagesnginx-module-pagespeed-1.31.10+1.14.36.4-76.el8.gps.x86_64.rpm |
| nginx-module-pagespeed | mainline | amzn/2023/mainline/x86_64 | complete | 1.31.8+1.14.36.3-75.amzn2023.gps and later8 packagesnginx-module-pagespeed-1.31.10+1.14.36.4-76.amzn2023.gps.x86_64.rpm |
| nginx-module-pagespeed | mainline | fedora/44/mainline/x86_64 | complete | 1.31.8+1.14.36.3-75.fc44.gps and later8 packagesnginx-module-pagespeed-1.31.10+1.14.36.4-76.fc44.gps.x86_64.rpm |
| nginx-module-pagespeed | mainline | fedora/45/mainline/x86_64 | complete | 1.31.8+1.14.36.3-75.fc45.gps and later8 packagesnginx-module-pagespeed-1.31.10+1.14.36.4-76.fc45.gps.x86_64.rpm |
| nginx-module-pagespeed | mainline | redhat/10/mainline/x86_64 | complete | 1.31.8+1.14.36.3-75.el10.gps and later8 packagesnginx-module-pagespeed-1.31.10+1.14.36.4-76.el10.gps.x86_64.rpm |
| nginx-module-pagespeed | mainline | redhat/9/mainline/x86_64 | complete | 1.31.8+1.14.36.3-75.el9.gps and later8 packagesnginx-module-pagespeed-1.31.10+1.14.36.4-76.el9.gps.x86_64.rpm |
| nginx-module-pagespeed | testing | redhat/9/testing/aarch64 | complete | 1:1.30.6+2.1.0~beta16-1.el9.gps and later12 packagesnginx-module-pagespeed-1.30.6+2.1.0~beta16-1.el9.gps.aarch64.rpm |
| nginx-module-pagespeed | testing | redhat/9/testing/x86_64 | complete | 1:1.30.6+2.1.0~beta16-1.el9.gps and later12 packagesnginx-module-pagespeed-1.30.6+2.1.0~beta16-1.el9.gps.x86_64.rpm |
| nginx-module-pagespeed | deb | — | complete | nginx-module-pagespeed revision -10 (stable and mainline) is the first fixed build on active Ubuntu and Debian suites: apt upgrade. The old-glibc fallback has no active DEB lanes; its misleading label was corrected in revision -12 without changing this fix floor. |
Update
yum updateinfo list GPSA-2026-0005 yum update --advisory=GPSA-2026-0005
References
- ngx_pagespeed-5f41269 — ngx_pagespeed: never write CSS holding a '<' into an HTML page