Skip to content

v2.1.0 - Iberochloe tagis

Choose a tag to compare

@SMEWebify SMEWebify released this 09 Oct 07:32
· 342 commits to WEM-2.0 since this release

Security and feature release. All instances should upgrade: it fixes an authenticated
remote code execution and a privilege escalation (see Security below).

⚠️ Read before upgrading from v2.0.1

  • Migrations: yes, all additive. php artisan backup:run, then php artisan migrate --pretend, then php artisan migrate.
  • Administration permission now enforced. Every admin/* route (company settings, roles and permissions, integrations, API tokens, imports/exports, logs, email templates…) now requires the your-company-menu permission. Before this release, the permission only hid the Administration menu. A migration grants it to the Admin role (and, if no role holds it, to the roles of the first account), so current administrators keep their access. Check that every role meant to administer the instance has it, or its users will get a 403.
  • HR edit routes now enforced. Editing an employee, locking an account and managing employment contracts require human-resources-menu. Changing a user's role requires your-company-menu, and nobody can change their own role.
  • Invoice and FEC exports are open to accounting-menu or your-company-menu.
  • PDF rendering: PHP, JavaScript and remote resources are disabled in DomPDF. The stock templates embed the logo and do not depend on any of these. If you maintain custom templates under resources/views/print/custom/ that load images or stylesheets over http(s)://, embed them instead (base64 or local path).
  • PDF custom CSS: the < character is now stripped from the company's PDF custom CSS. A real stylesheet never needs it (the child combinator > is kept).
  • Removed from the open-source edition: the punch designer and the press-brake tooling catalogue (introduced in v2.0.1). Their URLs stay in place and now describe the commercial offer.
  • New scheduled task: wem:esign:sync every 15 minutes. It does nothing until e-signature is configured. Make sure the scheduler runs (schedule:run).
  • VAT matrix: optional seeding. Without data, VAT behaves as before. To load the reference vocabulary and the default matrix: php artisan db:seed --class=VatReferenceSeeder then php artisan db:seed --class=VatMatrixSeeder. Both only add what is missing. Have the PCG accounts validated by your accountant.
  • Do not php artisan route:cache. It breaks mcamara localization.

Security

Advisory Severity Issue
GHSA-9r9x-268j-qjwv High Authenticated remote code execution via PDF custom CSS (DomPDF PHP evaluation), 2.0.0 and 2.0.1
GHSA-4424-c6rm-xgq2 High Privilege escalation: any authenticated user could assign themselves the Admin role and reach administration routes

Thanks to @pseudo for the private, coordinated report.

Details

  • DomPDF: enable_php, enable_javascript and enable_remote are now false. The PDF custom CSS is sanitised when saved and when rendered, which also neutralises a value stored before the upgrade.
  • Access control: see the permission changes above. If you suspect abuse, review model_has_roles for unexpected role assignments and personal_access_tokens for unexpected API tokens.

Quotes

  • Quote templates, duplication of a whole quote, and import of lines from another quote. The bill of materials is copied at full depth.
  • Presentation lines on quotes, orders and order acknowledgments: sections, subtotals, free text, lines hidden on the PDF, and sections printed as a package price.
  • Electronic signature (DocuSign) from the quote's public link. The signed PDF and its certificate are filed in the document manager and the quote moves to Won. Settings live under Integrations → Electronic signature.

Opportunities

  • Affair file: a Summary tab that computes the stage, blockers, next action and amounts across quotes, orders, purchases, deliveries and invoices, plus a unified timeline.
  • On-site visit (mobile): photos, measurements, voice memo transcribed by Whisper (OVHcloud), and an AI-drafted visit report.

Orders

  • Automatic customer email at each order stage (open, in progress, partially delivered, delivered). Opt-in per company on the company form, off by default.

Accounting and e-invoicing

  • VAT matrix (customer regime × product nature → VAT code and posting accounts) with an administration screen and a single resolver.
  • Factur-X: real EN 16931 categories (S, Z, E, AE, K, G) with exemption reasons, and the VAT breakdown grouped by category and rate. Falls back to the previous rule (S if rate > 0, Z otherwise) while no category is set.

AI

  • OVHcloud AI Endpoints (OpenAI-compatible, hosted in France) as a provider for the ERP assistant, selectable in Integrations → AI.

Interface

  • Shared DataTable on the 20 index screens: hideable and reorderable columns remembered per browser, column filters, page totals, and a card layout on phones.
  • Mobile app launcher, global mobile sheet and compact status bar.
  • Collapsible filters, list shown before the charts on phones, remembered index tab.
  • Fixed: unreadable "light" badges (white on white).
  • Fixed: the employee page's Documents tab did not load, and saving an employee reset their role to the first one in the list.

Fixes

  • Copying a routing or a quote line now copies the whole bill of materials tree.
  • Stock: inventory_id was lost on adjustment movements; the N2P sheet-lots API returned an error.
  • Companies: date cast on vat_attestation_valid_until.

Dependencies

  • Univer spreadsheet 0.25 → 1.0.3 (fixes the transitive nanoid advisory), jsPDF 4, Composer and npm security updates.

Thanks

Full Changelog: v2.0.1...v2.1.0