PatchClock

PHP security digest · 20 Nov 2026

baserCMS administrative API authorization bypass through session fallback

Medium CVE-2026-63012

Package
baserproject/baser-core
Fixed in
5.3.0
Published
Fri 20 Nov 2026, 00:18 Lisbon
Installs on Packagist
54K

In plain words

A logged-in operator can access administrative APIs that their account should not be allowed to use, including the mail settings example in the advisory. Session authentication lets them bypass the JWT restriction on /baser/api/admin/, making all APIs configured with auth => true accessible to operators.

Affected versions

PackageAffectedFixed in
baserproject/baser-core<= 5.2.35.3.0

How serious is it?

Medium is a CVSS score of 4.0 to 6.9: real impact, but the attacker needs something first, such as an account, a particular setting or a user who clicks a link. If your site meets that condition, treat it as High; if not, ship the fix in your next planned release.

baserproject/baser-core has 54K installs on Packagist, so the advisory reaches a modest number of projects, which does not make yours any safer.

Am I affected?

Look for baserproject/baser-core in composer.lock: versions up to and including 5.2.3 are affected; 5.3.0 is fixed. Check whether operator accounts have auth_prefix = 'Admin' without Api/Admin, whether session authentication is enabled for Api/Admin in getAuthenticationService, and which administrative APIs have auth => true in plugins/baser-core/config/permission.php. The advisory describes the default operator group as having this prefix restriction.

Did you install baserproject/baser-core, or did a dependency?

Composer says why a package is in your project:

composer why baserproject/baser-core

If the output names your own project, you required baserproject/baser-core directly and the update is yours to make. If it names another package, baserproject/baser-core came in through it, and that package's version constraint decides which release you can install. To see what stands between you and the fix, ask Composer directly:

composer why-not baserproject/baser-core 5.3.0

Every line it prints is a constraint that blocks 5.3.0. Update the package it names, or raise your own constraint, and run it again until it prints nothing.

What to do

Check which version you have, then update to a fixed release for your branch (5.3.0):

composer show baserproject/baser-core | grep versions
composer update baserproject/baser-core

If your version constraint in composer.json keeps you below a fixed release, raise it first. Whether your configuration is affected, and the exact version ranges, are in the advisory itself.

Check the whole project at once

Composer 2.4 and later can list every installed package with a known advisory, this one included once Packagist has it:

composer audit --locked

--locked reads composer.lock instead of the vendor folder, so you can run it on a release tag or in CI without installing anything. It exits with a non-zero code when it finds an advisory, which is enough to fail a build. Run it on every branch you still support, not only the newest: an older release your customers run is affected in the same way.

Under the Cyber Resilience Act

CRA Article 14 timeline: aware of exploitation at hour 0, early warning within 24 hours, notification within 72 hours, final report within 14 days after the fix.

No exploitation of this vulnerability is known, so on its own it does not start the Article 14 reporting clock, which covers actively exploited vulnerabilities. That changes if you learn it is being exploited through your product: then the 24-hour early warning applies.

Either way, if baserproject/baser-core ships inside a product you sell, the CRA treats its vulnerabilities as yours. Article 13(5) asks for due diligence on the components you include, and from 11 December 2027 Annex I asks you to ship security fixes without delay and free of charge for the support period you declared. A short note in your changelog saying which release updated baserproject/baser-core, and why, is the evidence you will want later.

What goes in each Article 14 report · Does the CRA apply to your product?

baserproject/baser-core's record

This is one of 2 advisories for baserproject/baser-core in the digest, the first published on 20 November 2026. A package with several advisories is not worse than one with none, which often just means nobody looked; it does tell you to keep it on your update list and to run composer audit after each update.

Other advisories for baserproject/baser-core

  • CVE-2026-62955 · 20 Nov 2026 · High · fixed in 5.3.0 baserCMS: Path Traversal Bypass via realpath() in BcThemeFileService (CVE-2026-30940 Patch Bypass)

The advisory's description

Summary

An authorization bypass occurs against the API endpoint /baser/api/admin/ by abusing the session authentication fallback.

Details

The mail settings are used here as an example.

Admin side:

https://github.com/baserproject/basercms/blob/master/plugins/baser-core/config/permission.php#L100 With auth => false, it is not accessible with operator privileges.

API side:

https://github.com/baserproject/basercms/blob/master/plugins/baser-core/config/permission.php#L286 With auth => true, it is accessible even with operator privileges.


First, the default group for operators has auth_prefix = 'Admin', which does not include Api/Admin.

https://github.com/baserproject/basercms/blob/master/plugins/baser-core/src/Model/Table/UsersTable.php#L389

Because of this condition, when trying to access the Api/Admin API with a JWT, operators have auth_prefix = 'Admin', so they cannot obtain a JWT and should not be able to access it.

However, there is a problem in getAuthenticationService.

https://github.com/baserproject/basercms/blob/master/plugins/baser-core/src/BaserCorePlugin.php#L507

Here, session authentication is enabled even for the Api/Admin prefix. By accessing the API with a Referer header, session authentication becomes active, allowing access to the API without holding a JWT.

As a result, all APIs configured with auth => true in permission.php become accessible by operators.

PoC

  1. Log in with a site operator (operator) privileged account.
  2. Run the following code in DevTools:
fetch('/baser/api/admin/baser-core/site_configs/view.json', {
  headers: {
    'Referer': location.origin + '/baser/admin/' 
  }
})
.then(r => r.json())
.then(d => {
  console.table(d.siteConfig);
})
<img width="1886" height="1027" alt="Screenshot_20260404_075242" src="https://github.com/user-attachments/assets/e91a1d27-ac36-42fb-88a8-bc699b28b04f" /> <img width="1277" height="595" alt="Screenshot_20260404_075133" src="https://github.com/user-attachments/assets/9c54459a-dad0-4445-a35d-1373255c2b22" />

Weakness: CWE-290 Authentication Bypass by Spoofing. Reported by toratako, arpitjain099.

The advisory

From OSV.dev, which gathers the GitHub Advisory Database, FriendsOfPHP and Drupal security advisories; the summary is theirs. The description, affected versions, weakness and credits are from the GitHub Advisory Database (CC BY 4.0). "In plain words", "Am I affected?" and "If you cannot update yet" are based on that advisory, and checked to name no version it does not.