CoreUI ONE — 250+ PRO components and 25+ admin templates for React, Angular, Vue, Bootstrap and Next.js, plus Data Grid, Scheduler, 4,300+ PRO icons and the Next.js boilerplate. One license. → See what you get

CoreUI v5.9.1 - Security Hardening and Component Lifecycle Fixes

CoreUI v5.9.1 - Security Hardening and Component Lifecycle Fixes

We are pleased to announce the release of CoreUI v5.9.1 for Bootstrap. This maintenance release hardens the sanitizer, makes dispose() leave the page the way it found it across several components, improves accessibility of toggle Buttons and loading animations, and fixes a handful of border-radius details.


Speed up your responsive apps and websites with fully-featured, ready-to-use open-source admin panel templates—free to use and built for efficiency.


How to Update

To update your project to CoreUI v5.9.1, follow these steps:

  1. Open your project’s package.json.
  2. Locate the @coreui/coreui entry under dependencies and update the version number to 5.9.1.
  3. Save your changes to the package.json file.
  4. In your project’s root directory, run the update command appropriate for your package manager:
    • For npm users, execute npm install.
    • For yarn users, execute yarn install.
    • For pnpm users, execute pnpm install.

What’s New

Security

  • Sanitizer: data: and vbscript: URLs are now rejected in URI attributes.
  • Configuration: sanitize, allowList and sanitizeFn are no longer read from data-coreui-* attributes in the markup. Set them in the JavaScript options instead.

Accessibility

  • Buttons: Toggle buttons expose aria-pressed before the first click.
  • Placeholders & Avatar: Loading animations stop for users who prefer reduced motion.

Bug Fixes

  • Dropdowns: Arrow and Escape keys in a .dropdown-menu without a toggle, such as a menu rendered by a framework component, no longer throw an error. The inner border radius is restored when the vertical padding is zero.
  • Modal & Offcanvas: The page no longer jumps on close, and scrolling is given back when the instance is disposed. Offcanvas is now also exposed under its documented name.
  • Sidebar: No longer leaks document and window listeners, declares the toggler height where the narrow sidebar reads it, and lets other togglers inside the sidebar keep their default behavior.
  • Card, Accordion, Modal & Popovers: The inner radius follows the component’s own border. The trailing footer corner of a card in a card group is square again.
  • Chip & Chip Input: Listeners are namespaced, so dispose() removes them, and the chip input no longer fakes its states.
  • Lifecycle: Replacing a component instance disposes the old one, and Sidebar, focus trap and navigation clean up what they added when disposed or deactivated. Tabs leave browser keyboard shortcuts alone.
  • Event handling: mouseenter and mouseleave get their own registry identity, and beforeinput accepts a namespace.

Documentation & Tooling

  • Docs: The Tables page has its sixteen demos back, and the form validation snippet runs on the Validation page.
  • Tests: The unit suite runs on Vitest browser mode instead of Karma.

Dependency Updates

  • Development dependencies updated to their latest minor and patch versions, including astro 7.3.5, rollup 4.64.0, sass-embedded 1.105.1 and vitest 4.1.11. The compiled CSS is unchanged by these updates.

Migration Notes

This is a maintenance release with no breaking changes to the public API. One behavior change to check after upgrading:

  1. If your markup sets data-coreui-sanitize, data-coreui-allow-list or data-coreui-sanitize-fn on tooltips or popovers, move those settings to the JavaScript options.
  2. Install updated dependencies, run your test suite and verify the build.

For a comprehensive overview of all changes, enhancements, and updates introduced in this release, please refer to the full changelog on GitHub.

Subscribe to our newsletter
Get early information about new products, product updates and blog posts.