This release fixes issues for SREs watching stability and regressions.
✓ No known CVEs patched in this version
Topics
+6 more
Affected surfaces
Summary
AI summaryFixed buttons being unclickable due to CSP blocking inline handlers.
Changes in this release
| Type | Severity | Summary | CVE |
|---|---|---|---|
| Feature | Low |
Adds regression tests ensuring CSP retains `script-src-attr 'none'` and forbids inline event handlers. Adds regression tests ensuring CSP retains `script-src-attr 'none'` and forbids inline event handlers. Source: llm_adapter@2026-07-17 Confidence: high |
— |
| Feature | Low |
Adds tests for deleting archived and active certificates. Adds tests for deleting archived and active certificates. Source: llm_adapter@2026-07-17 Confidence: high |
— |
| Bugfix | Medium |
Fixes "Install CA in System" failure due to missing CSRF token header. Fixes "Install CA in System" failure due to missing CSRF token header. Source: llm_adapter@2026-07-17 Confidence: high |
— |
| Bugfix | Medium |
Restores functionality of all inline `onclick` buttons blocked by CSP. Restores functionality of all inline `onclick` buttons blocked by CSP. Source: llm_adapter@2026-07-17 Confidence: high |
— |
| Bugfix | Medium |
Enables "Delete Forever" on archived certificates, which previously returned 404. Enables "Delete Forever" on archived certificates, which previously returned 404. Source: llm_adapter@2026-07-17 Confidence: high |
— |
| Bugfix | Medium |
Prevents alert close buttons from breaking when multiple alerts share the same millisecond timestamp. Prevents alert close buttons from breaking when multiple alerts share the same millisecond timestamp. Source: llm_adapter@2026-07-17 Confidence: high |
— |
| Refactor | Low |
Moves helmet security‑header configuration to `src/config/securityHeaders.js` for testability. Moves helmet security‑header configuration to `src/config/securityHeaders.js` for testability. Source: llm_adapter@2026-07-17 Confidence: high |
— |
Full changelog
A bugfix release resolving #42 ("Buttons not working") and two further bugs uncovered while verifying the fix. No new features; no API or configuration changes.
Fixed
- "Install CA in System" always failed with "Invalid CSRF token" (#42). The frontend
apiRequesthelper spread the caller's options after the constructed headers object in both of itsfetchcalls, so the one caller that passed a customheadersoption (the Install CA handler) silently discarded theX-CSRF-Tokenheader — on the first attempt and on the automatic retry. Options are now spread before the merged headers so the token always survives. - Every button wired with an inline
onclick="…"attribute was dead (#42): Download Root CA, all certificate-card actions (download cert/key/bundle, generate PFX, archive, restore, delete), alert close buttons, and all five SCEP-page buttons. helmet 8's default CSP directivescript-src-attr 'none'blocks inline handler attributes even thoughscript-srcallows'unsafe-inline'. All 14 inline handlers are migrated toaddEventListener— certificate cards through a single delegated listener withdata-actionattributes — and the strict CSP is kept. - "Delete Forever" on an archived certificate always returned 404. The archive endpoint moves files into the folder's
archive/subdirectory, but the DELETE route only looked in the folder itself. Latent until now because the button was unclickable under the CSP bug above. The route now checks both locations. - Settings-page alert close buttons broke when two alerts appeared in the same millisecond (they share a
Date.now()-based element id). Close buttons are now wired to the alert element itself instead of an id lookup.
Added
- Regression tests: the served CSP must keep
script-src-attr 'none'plus the app's directives, and no frontend source may contain an inline event-handler attribute. The helmet options moved tosrc/config/securityHeaders.jsso tests can mount them without booting the server. - Tests for deleting archived and active certificates.
Full Changelog: https://github.com/jeffcaldwellca/mkcertWeb/compare/v4.2.0...v4.2.1
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
Beta — feedback welcome: [email protected]