Skip to content

Update typography and patch selector parser - #9

Merged
hossainemruz merged 5 commits into
mainfrom
copilot/update-vurnable-tailwindcss-typography
Nov 14, 2026
Merged

hossainemruz merged 5 commits into
mainfrom
copilot/update-vurnable-tailwindcss-typography

Conversation

@hossainemruz

@hossainemruz hossainemruz commented Nov 14, 2026 •

Copy link
Copy Markdown
Member

Typography pins a vulnerable version of postcss-selector-parser that can take quadratic time to parse selectors with many class or ID indexes.

  • Dependencies: Update typography to 0.5.20 and override its parser to 6.1.6.
  • Documentation: Show downstream Hugo sites how to apply the override in their root package.json.

hossainemruz and others added 2 commits November 14, 2026 19:24
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
@hossainemruz hossainemruz changed the title [WIP] Update vulnerable @tailwindcss/typography to version 6.1.5 Update typography and patch selector parser Nov 14, 2026
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
nerdy dbc12b9 Commit Preview URL

Branch Preview URL
Nov 14 2026, 07:59 PM

@hossainemruz

Copy link
Copy Markdown
Member Author

@copilot The preview build failed with this error:

ERROR error building site: render: [en v1.0.0 guest] failed to render pages: render of "/" failed: "/opt/buildhome/repo/layouts/baseof.html:4:7": execute of template failed: template: home.html:4:7: executing "home.html" at <partial "site/head.html" .>: error calling partial: "/opt/buildhome/repo/layouts/_partials/site/head.html:18:3": execute of template failed: template: _partials/site/head.html:18:3: executing "_partials/site/head.html" at <partial "site/assets/css.html" .>: error calling partial: "/opt/buildhome/repo/layouts/_partials/site/assets/css.html:8:40": execute of template failed: template: _partials/site/assets/css.html:8:40: executing "_partials/site/assets/css.html" at <.RelPermalink>: error calling RelPermalink: TAILWINDCSS: failed to transform "/css/main.css" (text/css): access denied: "tailwindcss" is not whitelisted in policy "security.exec.allow"; the current security configuration is:

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

@copilot The preview build failed with this error:

ERROR error building site: render: [en v1.0.0 guest] failed to render pages: render of "/" failed: "/opt/buildhome/repo/layouts/baseof.html:4:7":...

Fixed in 8aa8db5 by explicitly allowing Tailwind and Node while retaining Hugo’s default allowed executables. The production build passes locally with Hugo 0.162.1.

@hossainemruz
hossainemruz marked this pull request as ready for review November 14, 2026 19:51
@hossainemruz

Copy link
Copy Markdown
Member Author

@copilot build still failing. Here is the full log:

2026-11-14T19:43:23.832Z	Initializing build environment...
2026-11-14T19:43:31.674Z	Success: Finished initializing build environment
2026-11-14T19:43:32.581Z	Cloning repository...
2026-11-14T19:43:33.492Z	Restoring from dependencies cache
2026-11-14T19:43:33.495Z	Restoring from build output cache
2026-11-14T19:43:33.694Z	Detected the following tools from environment: hugo@0.169.0, npm@10.9.2, nodejs@24.18.0
2026-11-14T19:43:33.695Z	Installing hugo 0.169.0
2026-11-14T19:43:34.862Z	Installing project dependencies: npm clean-install --progress=false
2026-11-14T19:43:44.831Z	
2026-11-14T19:43:44.832Z	added 71 packages, and audited 72 packages in 10s
2026-11-14T19:43:44.832Z	
2026-11-14T19:43:44.832Z	17 packages are looking for funding
2026-11-14T19:43:44.833Z	  run `npm fund` for details
2026-11-14T19:43:44.914Z	
2026-11-14T19:43:44.915Z	7 vulnerabilities (1 low, 6 high)
2026-11-14T19:43:44.916Z	
2026-11-14T19:43:44.916Z	To address all issues, run:
2026-11-14T19:43:44.916Z	  npm audit fix
2026-11-14T19:43:44.916Z	
2026-11-14T19:43:44.916Z	Run `npm audit` for details.
2026-11-14T19:43:44.917Z	npm warn allow-scripts 4 packages have install scripts not yet covered by allowScripts:
2026-11-14T19:43:44.917Z	npm warn allow-scripts   @parcel/watcher@2.5.6 (install: node scripts/build-from-source.js)
2026-11-14T19:43:44.917Z	npm warn allow-scripts   esbuild@0.27.3 (postinstall: node install.js)
2026-11-14T19:43:44.917Z	npm warn allow-scripts   sharp@0.34.5 (install: node install/check.js || npm run build)
2026-11-14T19:43:44.918Z	npm warn allow-scripts   workerd@1.20260611.1 (postinstall: node install.js)
2026-11-14T19:43:44.919Z	npm warn allow-scripts
2026-11-14T19:43:44.919Z	npm warn allow-scripts Run `npm approve-scripts --allow-scripts-pending` to review, or `npm approve-scripts <pkg>` to allow.
2026-11-14T19:43:45.208Z	Executing user build command: npm ci && npm run build
2026-11-14T19:43:49.217Z	
2026-11-14T19:43:49.217Z	added 71 packages, and audited 72 packages in 4s
2026-11-14T19:43:49.217Z	
2026-11-14T19:43:49.217Z	17 packages are looking for funding
2026-11-14T19:43:49.218Z	  run `npm fund` for details
2026-11-14T19:43:49.345Z	
2026-11-14T19:43:49.346Z	7 vulnerabilities (1 low, 6 high)
2026-11-14T19:43:49.346Z	
2026-11-14T19:43:49.346Z	To address all issues, run:
2026-11-14T19:43:49.346Z	  npm audit fix
2026-11-14T19:43:49.346Z	
2026-11-14T19:43:49.346Z	Run `npm audit` for details.
2026-11-14T19:43:49.347Z	npm warn allow-scripts 4 packages have install scripts not yet covered by allowScripts:
2026-11-14T19:43:49.347Z	npm warn allow-scripts   @parcel/watcher@2.5.6 (install: node scripts/build-from-source.js)
2026-11-14T19:43:49.347Z	npm warn allow-scripts   esbuild@0.27.3 (postinstall: node install.js)
2026-11-14T19:43:49.347Z	npm warn allow-scripts   sharp@0.34.5 (install: node install/check.js || npm run build)
2026-11-14T19:43:49.348Z	npm warn allow-scripts   workerd@1.20260611.1 (postinstall: node install.js)
2026-11-14T19:43:49.348Z	npm warn allow-scripts
2026-11-14T19:43:49.348Z	npm warn allow-scripts Run `npm approve-scripts --allow-scripts-pending` to review, or `npm approve-scripts <pkg>` to allow.
2026-11-14T19:43:49.627Z	
2026-11-14T19:43:49.627Z	> nerdy@0.1.0 build
2026-11-14T19:43:49.627Z	> hugo --source exampleSite --renderToMemory && hugo --source exampleSite --minify --gc --cleanDestinationDir
2026-11-14T19:43:49.627Z	
2026-11-14T19:43:49.863Z	Start building sites … 
2026-11-14T19:43:49.863Z	hugo v0.169.0-1da10fc44701c566b1669cdb2d12638f155138bd linux/amd64 BuildDate=2026-10-27T14:52:20Z VendorInfo=gohugoio
2026-11-14T19:43:49.863Z	
2026-11-14T19:43:50.330Z	Total in 469 ms
2026-11-14T19:43:50.330Z	ERROR error building site: render: [en v1.0.0 guest] failed to render pages: render of "/" failed: "/opt/buildhome/repo/layouts/baseof.html:4:7": execute of template failed: template: home.html:4:7: executing "home.html" at <partial "site/head.html" .>: error calling partial: "/opt/buildhome/repo/layouts/_partials/site/head.html:19:3": execute of template failed: template: _partials/site/head.html:19:3: executing "_partials/site/head.html" at <partial "site/assets/js.html" .>: error calling partial: "/opt/buildhome/repo/layouts/_partials/site/assets/js.html:8:24": execute of template failed: template: _partials/site/assets/js.html:8:24: executing "_partials/site/assets/js.html" at <.RelPermalink>: error calling RelPermalink: JSBUILD: failed to transform "/js/main.js" (text/javascript): "/opt/buildhome/repo/assets/js/main.js:1:19": "/opt/buildhome/repo/node_modules/alpinejs/dist/module.esm.js" resolves to "/opt/buildhome/repo/node_modules/alpinejs/dist/module.esm.js" outside the project; only files below the working directory or the paths in security.node.permissions.allowRead can be imported
2026-11-14T19:43:50.348Z	Failed: error occurred while running build command

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>

Copilot AI commented Nov 14, 2026

Copy link
Copy Markdown
Contributor

@copilot build still failing. Here is the full log:

2026-11-14T19:43:23.832Z	Initializing build environment......

Fixed in dbc12b9 by allowing Hugo to read the demo’s root-level node_modules. Production and development builds pass locally with Hugo 0.169.0.

@hossainemruz
hossainemruz merged commit 54349c6 into main Nov 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update vurnable @tailwindcss/typography

2 participants