Repository navigation
CubeCart 6.7.6
This is not the current release. The latest version is 6.8.3.
CubeCart 6.7.6 is a security and maintenance release following 6.7.5. It resolves two responsibly-disclosed vulnerabilities - both residuals of earlier fixes that turned out to be incomplete - and rolls up a broad set of tax, pricing, multi-domain and admin fixes.
Both reported vulnerabilities are authenticated (they require an existing back-office session) and were fixed before public disclosure. By running this version your store is now protected against them; if you operate any additional CubeCart stores, make sure they are updated too. See the linked advisories for full details.
Also included, without individual issue numbers: Elasticsearch fixes for a page=all fatal, stock exclusion and empty documents; a tax fix for inclusive-price subtotals where the customer's VAT rate differs from the store's; retail quantity tiers now kept for customers in a customer group; stable ordering for paginated statistics reports; an SEO fix for double-slash URLs; and dependency updates for the Elasticsearch client.
The upgrade adds an updated column to CubeCart_saved_cart and an index on CubeCart_search.
Security
- GHSA-fcv7-88v5-vv5f Fixed
ORDER BYSQL injection in the admin Customers and Orders listings - string-typed sort expressions are now structurally validated inDatabase::select()rather than passed through quote-escaping, which does nothing in anORDER BYcontext. Completes the fix for GHSA-rm2f-rpcq-6w9f, which hardened only the array form and the single page reported at the time - GHSA-5mr8-hgcv-3pcj Hardened the Smarty security policy for editable email, document and invoice templates against three bypasses. Static class access was unrestricted (an empty allowlist meant "allow all"), so a template could call any
{Class::method()}- including a callback-invoking static method on a loaded class, reaching arbitrary code past the function denylist entirely; access is now restricted to an allowlist. Several callback-taking functions such asarray_walk_recursivewere missing from the denylist, and both policy checks compared function names case-sensitively - so any change of capitalisation bypassed the list. A new$glob['smarty_allowed_php']setting can un-ban a specific function per install where an extension needs one; shell and eval functions are exempt from that override
Changes
- #4223 Fixed customers being unable to complete payment for the last item in stock. With stock reduced at Pending, returning to pay reloaded the order into an empty basket with an availability error; the basket now credits back the stock the customer's own pending order is holding
- #4217 Fixed the HTML minifier un-escaping entities in text nodes, which silently defeated
|escapein every skin and let broken markup in a short description leak out of its container - #4145 Fixed abandoned-cart reminders being sent to customers who had already completed and paid for their order. Saved carts are now cleared when payment lands rather than only when the shopper returns to the receipt page, and the suppression check is anchored to the cart instead of to session activity
- #4209 Admin product Categories tab: added a search filter and a "selected only" toggle, and selected categories are now highlighted rather than relying on a small checkbox - particularly hard to spot in dark mode
- #4177 Plugins can register their own scheduled tasks via a new
class.cron.taskshook, each appearing in Scheduled Tasks with its own enable toggle, frequency, last run and last result instead of having to share the single code-snippets task - #4210 Removed the last remnants of the retired social links so Vimeo and others can be cleared properly
- #4208 Admin dashboard: added "vs same period last month" comparisons
- #4207 Fixed the white screen and error-log entry when filtering Users Online by "Display Customers Only"
- #4206 Fixed the "recent extensions" notification not clearing for stores west of UTC
- #4205 Fixed "Lock wait timeout" errors on the
CubeCart_searchhit counter - #4204 Fixed 404 log "Duplicate entry" errors under concurrent requests
- #4203 Featured Product box no longer uses
ORDER BY RAND(), using a random primary-key pivot instead - a significant improvement on large catalogues - #4202 Orphaned
product_id = 0images no longer appear on the Add Product page - #4201 Fixed CSS minification failures on PHP 8 with modern CSS features, and preserved whitespace in non-base64 data URLs
- #4200 Product review JSON-LD no longer hardcodes
ratingValueto 5 - #4199 Document editor now allows external videos via the iframe allowlist
- #4197 Fixed remaining tax-inclusive rounding issues and inclusive totals are now shown on order receipts
- #4193 Fixed being unable to remove a digital download file from a product
- #4190 File manager no longer reports "Not enough memory to create thumbnail" for non-image files in
images/source - #4187 Fixed tariff code charging both physical and digital products
- #4186 Fixed tariff display issues
- #4185 Fixed being logged out of the admin after a short time
- #4182 Fixed PHP 8 fatal errors in the product CSV import
- #4181 Fixed
getProductPrice()applying percentage group/category discounts twice on category listings - #4180 Customer group pricing at product level now accepts 0.00 and empty values
- #4173 Restored multi-domain / per-language subdomain stores broken by store URL pinning
- #4172 Fixed domain-based language selection broken by store URL pinning
- #4171 Fixed the tax/tariff line missing from totals when a zero-value inherited tax is present
- #4170 Plugins providing a
gateway.class.phpnow show allowed/disabled zones - #4168 Foundation: improved SEO and social tags in
element.meta.php
Install
Download CubeCart-6.7.6.zip below, not the source archives. See the installation guide or the upgrade guide.