Accent CMS 0.27.1 — validation fixes and security updates

Accent CMS 0.27.1 is out: a bug-fix and security release for the 0.27 line, cut from the v0.27.0 tag with none of the 0.28 development work. Any licence with a 0.27 ceiling covers it. Most of the fixes came from moving a real site to 0.27.

Check your theme and plugins

accent init and accent plugin new copy their templates into your project, so a site or plugin you created before 0.27.1 keeps the old copy. Three things need a small edit there. Everything else takes effect when you upgrade the binary.

Social image tags. The upgrade fixes your canonical link and og:url. The og:image and twitter:image tags print page.social_image directly, so they still escape its slashes. In your theme’s head_meta.html.jinja partial, replace {{ page.social_image }} with {{ absolute_url(page.social_image) }} in both tags.

JavaScript plugins. A plugin you made with accent plugin new --lang js in 0.27.0 builds a component that Accent refuses to load. In its package.json:

  • Set the build script to jco componentize plugin.js --wit wit --world-name content-plugin --disable http fetch-event -o plugin.wasm. The flags must follow the input file.
  • Set @bytecodealliance/jco to 1.36.1 and @bytecodealliance/componentize-js to 0.23.0.

Then run npm install and rebuild the plugin.

Math in a docs site. A site from accent init --docs loads KaTeX 0.16.21. In templates/base.html.jinja, change katex@0.16.21 to katex@0.19.0 in the stylesheet and the script URL.

Fixes

accent validate accepts what the build publishes. It reported every {% partial %} as not found, and every link to a file in the static/ directory, such as a PDF, as broken. A site that used either failed validation, although it built and served correctly. Both now resolve as they do in the build. A partial that exists nowhere, and a link to a file the build does not publish, are still reported.

Links in a ---section: region reach their pages. A section’s wikilinks and relative .md links were written into the page as you typed them, so they led nowhere, and accent validate did not check them. Sections now resolve links as the page’s main content does, and accent validate reports a broken one with the name of its section.

Canonical and social URLs keep their slashes. Every page built with a shipped theme wrote its canonical link and og:url with each slash escaped as /. absolute_url() now returns the URL with literal slashes. A theme that added | safe to work around this keeps working.

Component templates see the page’s modules. In a component, page.modules was an empty list, so you could not place a module’s content with a component. It now holds each module’s name, title, rendered content and fields, in accent serve and accent build alike.

JavaScript plugins load. The template from accent plugin new --lang js built a component that asked for an HTTP interface Accent does not provide, so Accent skipped the plugin at startup. New plugins build correctly. A plugin still makes HTTP requests through the outbound-http capability.

accent license status works in any directory. It failed where there was no config.yaml, although the key usually comes from ACCENTCMS_LICENSE. It now reads config.yaml only when there is one.

The admin schema browser lists models by name, instead of in an order that changed every time the server restarted.

Security

Plugin runtime: wasmtime 48.0.6 fixes twelve advisories. One let a plugin with filesystem access escape its directory by renaming a symbolic link written with a trailing slash. Most of the others could let a plugin make the server panic through component-model async calls, streams and futures. Only plugins run through wasmtime, so a site that runs no plugins never reaches this code. If your site runs plugins you did not write, upgrade now.

TLS: rustls 0.23.46 fixes four advisories in the library behind Accent’s HTTPS server and its outbound connections:

  • The debug output of a client session could expose TLS secrets.
  • A rejected Encrypted Client Hello could send buffered data to the outer server.
  • Certificate decompression could allocate up to 1 GiB before the peer was authenticated.
  • An unauthenticated ServerHello could downgrade later connections to classical key exchange.

Dev-mode diagram preview: Mermaid 11.17.2 fixes five advisories. A diagram could hang the browser tab that previews it, pollute JavaScript object prototypes, or restyle the page around it. Mermaid loads only in accent serve without --production. Built sites use server-rendered SVG. If you set diagrams.renderers.mermaid.cdn_url yourself, move it to 11.17.2.

KaTeX 0.19.0 in the docs theme no longer treats a setting inherited from a polluted Object.prototype, such as trust, as set.

The JavaScript plugin template takes jco 1.36.1 and componentize-js 0.23.0. The old toolchain installed a decompress release whose archive extraction could write outside its target directory during npm install.

YAML parser: noyalib 0.0.58 is a security release. Its fixes are in code Accent does not reach, so pages, config and build output are unchanged. One difference is visible: an unknown key in a model file’s body: section is now reported with its line, column and path.

Install or upgrade:

curl -fsSL https://accentcms.dev/install.sh | sh

Binaries for all platforms, checksums, and signatures are on the GitHub release page.