- The General/ level is gone: its 109 files moved up into the folders of the
same name, and its topic table is the "Shared topics" section of
Features.md.
- Accessibility is one folder, docs/Features/Accessibility/, with the Admin
Panel's accessibility page in it.
- Every folder's main page is README.md (110 X/X.md pages renamed with git mv,
five merged with an existing README.md, 26 index pages added for folders
that had none), so a folder opened on GitHub shows its page.
- The 73 "# Moved" forwarding pages are deleted, with the folders that held
only them; every link that went to one goes to its final page.
- docs/Features/README.md has the website's "Features in WeKan" overview,
each feature linking to its page here.
1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose,
snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when
General/ or a "# Moved" page comes back, a folder has no README.md, or a
relative link in the docs or README.md does not resolve.
Thanks to xet7 !
From docs/Compliance/README.md's P3 list and row 2.2:
- Emergency access: Admin Panel / People's user popup has "Emergency
access" with a note before Impersonate. It is kept as reason emergency
with the note (shown in the Impersonation Report), and every other
administrator who can sign in gets an e-mail at once; a failed e-mail
never stops the impersonation (models/lib/emergencyAccess.js).
- The administrators' audit log is hash-chained: each row carries its
place, the previous row's hash and its own. Its _id is its place, so two
servers writing at once cannot both take it - the unique _id refuses the
second, which takes the next. A daily check, and verifyAdminAuditChain,
walk it from the oldest row kept and report an edited or removed row in
Problems / Filesystem integrity (models/lib/auditChain.js).
- REGISTRATION_MINIMUM_AGE: the sign-up form asks "I am at least N years
old" and a password sign-up without it is refused; administrators'
accounts and identity providers' are not asked, and nothing is stored
(models/lib/registrationAge.js). On every platform and the Helm chart.
- Records of processing (draft) in Admin Panel / Settings / Legal pages:
every collection holding personal data, why, how long with this server's
values, and the outside services this server really uses, as Markdown to
complete (models/lib/ropaDraft.js).
Seven new strings, translated in every language. Low confidence: chr, dz,
bo, gv, ak, ay, bm, ee, ff, fj, gn, haw, bua, cv, ba, csb, ace, bi, fur, an,
ast-ES, co, fo, hsb, gd, ht, bho, as, iu, kl, kw, ks, nah, rup, sah, lld,
szl, sm, ss, nd, qu, om, pap, lg, rn, rw, nso, st, sn, ny, mai, kok, sc,
scn, nap, mg, la, ig, ky, ja-HI, tig, tlh, vo, ve-PP, wal, zgh, uz-AR, to,
tpi, ts, tn, ve, wa, wa-RR, wo, wuu-Hans, yi, yo, tk_TM, ug, tt, ti, oc, rm,
sd, ps. The wrong-language catalog values the translators saw are in
TODO.md.
Thanks to xet7 !
Two items of docs/Compliance/README.md's P3 list ([GDPR] Art. 5(1)(c) data
minimisation and 5(1)(e) storage limitation):
- LOGIN_ADDRESS_RECORDED=false: WeKan writes down no sign-in address at
all - not on the account, not in Login locations or Offices; a sign-in
with a short password is still listed, without where from. The lockout
still counts failed sign-ins per address, to stop guessing.
- USERS_ANONYMIZE_INACTIVE_AFTER_DAYS: an account disabled for inactivity
(USERS_DISABLE_INACTIVE_AFTER_DAYS) is anonymised that many days later,
as Member Settings / Anonymize does - its data elsewhere erased first -
in the same nightly run. Disabling now records loginDisabledAt, enabling
clears it, and accounts disabled before it existed start their clock
now. Never an administrator, an account disabled by hand or by LDAP, or
one enabled again; off unless set.
Both on every platform, the snap and the Helm chart.
Thanks to xet7 !
Admin Panel / Settings / Legal pages has Require acceptance for the terms
of use and the privacy notice (docs/Compliance/README.md WP-8, row 1.7).
While it is on, an account that has not accepted the current version of
each such page sees only the acceptance dialog after signing in, and the
server refuses every method outside an allowlist and sends nothing from
its publications (server/requireLegalAcceptance.js, built like
REQUIRE_2FA's gate). A new version of the text is asked for again; only
the version that is current when accepting is recorded, so an older text
cannot be accepted for a newer one. Each acceptance is kept as
legalAcceptances.<page> = { version, at }, shown in Member Settings /
Privacy and my data and part of Download my data. The sign-up form shows
an optional "I accept" checkbox meanwhile. The REST API is not gated.
Seven new strings, translated in every language. Low confidence: ace, ak,
ay, ba, bm, bo, bua, chr, csb, cv, dz, ee, ff, fj, gn, gv, haw, fur, hsb,
iu, kl, ks, kw, lg, lld, nah, nap, nd, nso, ig, mi, kok, mai, la, rup,
sah, qu, se, szl, ss, sc, scn, om, ny, pap, rn, sm, sn, st, rm, oc, sd, ps,
or_IN, tig, tlh, vo, ve-PP, wal, wa, zgh, uz-AR, ve-CC, wuu-Hans.
Venetian (ve-CC) and Veps (ve-PP) had Venda, and Waray (wa-RR) had
Walloon (and one English value), in the legal-pages strings and some
older ones; those are now in the tag's own language, with a guard
(tests/wrongLanguageCorrections20261124.test.cjs). Low confidence for
those three.
Thanks to xet7 !
Deleting an account removed only the users document and its board, card and
list memberships; 40 collections the personal-data inventory marks for
deletion or anonymisation kept the person - workload, time entries, sign-in
addresses, sessions, jobs, credentials, notifications, reactions, event-log
tallies. models/lib/userErasure.js holds a rule per collection and runs on
deletion (Users.after.remove) and anonymisation (anonymizeUser); an invoiced
time entry is kept without the person, and an anonymised account keeps its
references. Integrity-checked delivery records are reduced to ids by their
compaction, which the inventory now names. Anonymisation replaces services
whole and clears sign-in addresses, passkeys, SQRL, push and ntfy, e-mail to
card and the e-mail buffer. The inventory's gap list is empty
(docs/Compliance/README.md WP-4).
Thanks to xet7 !
The board import stored spentTime: card.spentTime || null, and MongoDB and
FerretDB refuse the $inc that logs time on a null, so /cards/updateAsync
failed on every such card. The importers now store a Number. The Cards and
Boards before.update hooks turn an $inc of a stored non-number into the $set
of the sum (models/lib/spentTime.js) - not an update pipeline, which FerretDB
v1, Minimongo and allow/deny refuse. The startup step spenttime-null-repair
resets the stored nulls to 0. Checked against FerretDB: the bare $inc and the
pipeline are both refused there, the hook's $set and the repair step work.
Thanks to Raymond-Voogt and xet7 !
Fixes#6940.
A member refused write access to a list could move the whole swimlane to
another board with POST /api/boards/:boardId/swimlanes/:swimlaneId/move: the
route asked only for board write access, and the locked list's cards landed
in lists on the other board with no exceptions, where the member could edit
or delete them. Now the route refuses with 403 when a list holding the
swimlane's cards refuses the caller's role, and the attempt is shown in
Admin Panel / Problems as ListLockMoveBleed (authz.list-locked-move). A test
fails when any server code moves a swimlane without asking the gate.
Also: a card move outside a Meteor method read Meteor.userId(), which throws
on the server there, so every REST swimlane move answered 500 after its first
card had moved. The mover is read without throwing.
GHSA-394w-8q99-q4qx.
Thanks to adityasunny06help-coder and xet7 !
Admin Panel / Settings / Features gets one switch, stored as
webhooksDisabled on the Settings document and saved by the site-admin
method saveWebhooksDisabled (audited). While it is on:
- nothing is sent: board and global webhooks, two-way webhooks,
Mattermost direct messages, the grouped and scheduled queue, durable
Sync webhooks, the login and registration webhook and bot dispatches
all ask webhooksOff() first (models/lib/webhooksSwitch.js SENDERS);
- adding or changing a webhook is refused: the Integrations deny rules,
the REST POST/PUT and activities routes (403 webhooks-disabled), a
webhook's own delivery settings and saveAccountWebhook. Each refusal
is recorded in Admin Panel / Problems as "Webhooks turned off"
(authz.webhooks-disabled, blocksAccount: false); a silent non-send is
never recorded;
- nothing is deleted, so turning it off brings every webhook back.
Removing a webhook stays allowed.
Also the site-admin method webhooksReportPage for the coming Admin Panel
/ Problems report: every integration with its board and owner, the
token reduced to whether one is set, secrets masked in the URL.
Tests: tests/webhooksSwitch.test.cjs (the queue sends nothing and keeps
what waits; every webhookFetch caller is a sender that asks or is listed
as not a webhook; every write path refuses and records; report rows
carry no token), a server mocha test, and the existing vm-driven suites
supplied with the switch, with a negative case that nothing is sent.
Thanks to xet7 !
An unticked feature hid its menus and nothing else: the Table, Chat, Email,
Version Control and Scrum views' methods and publications still answered,
setBoardView still stored a hidden view, and a client could still turn on a
list policy, a commitment point, a WIP limit per person or a split list.
models/lib/featureServerGates.js lists, for every catalog feature, its server
paths, its write gates, or why it is display only. requireFeature /
featureAllowed (server/lib/assistGate.js) refuse with feature-disabled and
record the attempt in Admin Panel / Problems as Disabled setting; the Scrum
methods are wrapped in one place, except the ones the card details, Board
Settings and data recovery use too; Boards / Lists deny rules refuse turning
a flow policy on; setCardFlow refuses Done here while split lists is off;
setBoardView refuses a hidden view. Board Settings / Scrum settings follows the
Scrum views tick, as it opens in the Sprints view.
tests/featureServerGates.test.cjs fails when a catalog feature is undecided,
or when a method or publication of a feature file does not ask the gate.
Thanks to xet7 !
Admin Panel / People / Login / Self delete user account unticked only hid the
Delete and Anonymize buttons: removeUser and anonymizeUser on your own account
still worked, and so did DELETE /api/users/:userId for an administrator's own
id. And removeUser's self branch returned before the last-administrator
check, so the only site administrator could delete themselves.
Now every self-removal path asks models/lib/selfAccountRemoval.js: refused
while the setting is off (recorded in Admin Panel / Problems as Disabled
setting, never disabling the account), and refused for the last site
administrator (not recorded: the button is there, so it is ordinary use).
Username Change unticked: the setUsername method already refused, but the
Users allow rule still let a client write its own username directly; a
Users.deny rule now refuses that and records it.
Thanks to xet7 !
The calendar offered both to every member, read-only ones too, and the
server refused them - recording each refusal in Admin Panel / Problems as an
attempt (DueDateBleed), which a read-only member clicking a day is not. Now
editable and selectable follow Utils.canModifyBoard(), so a refusal is again
only an attempt. tests/calendarWriteGate.test.cjs pins it.
Thanks to xet7 !
- The width the bottom corner handle drags the card to is kept per user, as
the left menu's is: profile.cardDetailsWidth for a signed-in user, a cookie
otherwise. Every card opens at it, within the viewport. Reset width in the
card menu, or a double-click on the handle, forgets it.
- Admin Panel / Settings / Appearance / Card details default width: a
percentage of the browser window, 30 to 95, at least 520px; empty is 520px.
- The card opened as a popup takes the same width; the mobile view and the
maximized card do not.
- A resize that made the card wider ended with the mouse outside it, which
closed the card: the resize is now a drag the close handler knows.
models/lib/cardDetailsWidth.js decides the width (tests/cardDetailsWidth.test.cjs),
client/lib/cardDetailsWidthMemory.js sets --wekan-card-details-width and
notices the drag, and tests/playwright/specs/card-details-width.e2e.js drags
the real handle in Chromium. The four new strings are in every language.
Translations with low confidence: chr, iu, kl, tlh, vo, wal, wo, zgh, nah,
tig and ve-PP; lower than usual also ay, gn, qu, ff, ee, bm, lg, fj, gv, kw,
lld, rup, szl, sah, cv, bua, ba, bo, dz, ks, se, wa, om, ak, sn, ts, tn, ss,
nd, ve, sm, to, tpi, bi, rn and wuu-Hans.
Thanks to rmb82 and xet7 !
Fixes#6939.
Four Kanban and Scrum practices other tools have, kept on the card
(card.flow, models/lib/cardFlow.js), offline and with no AI:
- Blocked: ticked with a reason; who marked it and since when are the
server's. A red Blocked badge on the minicard, the reason its tooltip.
- Class of service: Standard, Fixed date, Expedite, Intangible. Expedite
has a WIP limit of one open card per board; a second is refused.
- MoSCoW priority: Must, Should, Could, Won't have.
- WSJF score: business value, time criticality and risk reduction divided
by job size, each on the 1-20 scale; shown once every part is set.
Each is a row of Board Settings / Card in the Card section, off on the
card and the minicard until a board turns it on, and an Admin Panel /
Features / Card field that hides it on every board. Written only by the
setCardFlow method, which checks the card edit right, an assigned-only
member's own cards and the values; a client write of flow is denied.
Translated in every language.
Thanks to xet7 !
GHSA-rg85-qx5c-qx67 reported the InviteBleed brute force again, now as a
GitHub Security Advisory. The 128-bit code of the first fix was still in
place, but two things it left were open:
- An invitation made before the fix, and not used yet, kept its six-digit
Math.random() code and was still accepted at sign-up; a re-invite even
mailed the same code again. A code shorter than the 22 base64url
characters of a 128-bit code is now refused at sign-up, in both places it
is looked up, and hasUsableCode() treats it as missing, so a re-invite
replaces it with a strong one (models/lib/invitationCodeEmail.js
isStrongInvitationCode).
- The DDPRateLimiter rule was on createUser, which a client is refused
anyway, while the sign-up form creates the account through useraccounts'
ATCreateUserServer, which had no limit. It now takes at most 10 attempts
a minute per address, and each refusal is an InviteBleed row in Admin
Panel -> Problems (brute.invite).
The other two advisories of the same report were checked against the
current code and are already fixed: GHSA-6944-p22h-3qpx (OIDC shared
serviceData race) since #4897 on 2026-07-17, whose per-login objects are
locals of the callback, and GHSA-j4x8-689m-h4hv (stale impersonation record
allows export), where every export route authorizes through
canExportBoardData() only and the impersonation record is just the audit
row written after it.
Thanks to meifukun and xet7 !
setUsername wrote only for a site admin, so with Admin Panel / People /
Login Username change allowed a member's new username was not saved, and
the popup closed as if it had. It now follows setEmail: an admin renames
any account, a member their own when the setting allows it, and anything
else is refused with not-authorized instead of returning quietly.
setUsernameAndEmail asks for both changes to be allowed.
Thanks to xet7 !
GET /api/boards/:boardId/lists/:listId/cards and
GET /api/boards/:boardId/swimlanes/:swimlaneId/cards now also return each
card's modifiedAt, dateLastActivity, labelIds, members and customFields
([{ _id, value }]), so a syncing client can skip unchanged cards instead
of a GET per card. Both routes build their items in
models/lib/restCardListItem.js, so they stay alike.
Same board access check, and no extra query. Admin-only custom field
values stay concealed by sendJsonResult's redaction, as on the single-card
GET; each item carries its boardId so that redaction is scoped to this
board, and an admin of it still reads a field shared with other boards.
Thanks to rmb82 and xet7 !
Fixes#6928,
Decided by the maintainer on 2026-11-18 (TODO.md). Deleting, archiving,
restoring or moving a list, and deleting, archiving or moving a
swimlane, does the same to the cards in it, so a list that refuses a
role write access (#4527) now refuses those too:
- lists.softRemove, lists.restore and moveList answer not-authorized;
- the REST list DELETE, archive, unarchive and move, and the REST
swimlane DELETE, answer 403, recorded as ListLockBleed;
- moveSwimlane is refused when a list holding its cards, or bound to
it, refuses the role (swimlaneRefusingListIds);
- client writes meet new Lists and Swimlanes deny rules, and the list
menu no longer offers Archive list or Archive all cards in such a list.
Renaming, recolouring and reordering are not refused, and board admins
are never restricted.
tests/listLockStructure.test.cjs runs the swimlane gate and pins every
path; list-lock-bulk.e2e.js replays the REST cases. Sandboxed route
tests get a pass-through gate.
Thanks to xet7 !
Decided by the maintainer on 2026-11-18 (TODO.md): a list that refuses a
role write access (#4527) refuses that role's dependency lines on its
cards too, since a line is stored on its source card. setBoardDependency
and removeBoardDependency answer not-authorized, the REST dependency
routes answer 403 recorded as ListLockBleed, and importBoardDependencies
skips such lines. Board admins and site admins are not restricted, as
before.
tests/listPermissions.test.cjs no longer exempts the dependency routes
and follows the access helpers a route awaits;
tests/listLockDependencies.test.cjs pins DDP and the import, and
list-lock-bulk.e2e.js replays it over REST.
Thanks to xet7 !
GHSA-83w9-74mx-7v83. A board admin can refuse a role write access in one
list (#4527, roleExceptions). REST DELETE /api/boards/:boardId/cards/bulk
and POST /api/boards/:boardId/cards/labels take their cards from the
body, so no URL names a list, and asked only for board write access; the
methods archiveSelectedCards, copyCard and createLinkedCard write from
server code, past the Cards allow/deny rules. A normal member the list
refused could delete, relabel and archive its cards and copy or link new
cards into it.
- The bulk routes read every card and ask each list before the first
write (assertCardListsNotRefused): any refusal is a 403 and nothing
changes, recorded in Admin Panel / Problems as ListLockBulkBleed
(authz.list-locked-bulk, medium). Each removal and relabel is keyed on
the list that was checked.
- The methods refuse with not-authorized (assertListsWritable), not
recorded: Copy Card and Multi-Selection reach them in ordinary use.
- The same shape, fixed with the same check: createBoardFromCard,
addSubtaskCard, createCardWithDueDate (which also did not check that
the list is on the board), the iCalendar import over DDP and REST,
sending and receiving board email, vcsCreateIssue, moveBoardObjects,
History's undo/redo/Restore, position history undo/redo of a card,
renameAttachment, the scoped import and a card's rule button.
Dependency lines keep their own board-wide rule.
tests/listLockBulkBleed.test.cjs runs the gate on the reporter's board
and pins every path; tests/playwright/specs/list-lock-bulk.e2e.js replays
the proof of concept. Older guards that pinned the previous shape are
updated with the reason.
Thanks to immanuwell and xet7 !
Follow-up to PR #6926. Clearing a value is an edit recorded in History,
not a deletion, so Admin Panel / Problems / Delete has no part in it and
the old value stays restorable. collection2's default clean removes ''
from $set and then throws "your modifier is now empty", so:
- History's redo and Restore of a cleared title or description threw,
while undo worked. applyFieldContent now writes the recorded value back
exactly (removeEmptyStrings and trimStrings off).
- The card details title and description clear, and the board
description clear, pass removeEmptyStrings: false.
- REST card PUT always passes removeEmptyStrings: false for title and
description: a title of only spaces was trimmed to '' and then removed,
a 500, and the #6877 description clear had no option at all.
tests/emptyStringClearWrites.test.cjs replays undo/redo/Restore through a
collection2-like clean and pins the options at every write;
tests/playwright/specs/card-clear-undo-redo.e2e.js clears in the card
details and over REST, then undoes and redoes.
Thanks to AhmedLukman and xet7 !
GHSA-3vjg-3p4q-8fwh. The REST card DELETE looked the card up on the board
the caller was authorised for, destroyed its checklists, checklist items,
comments, attachments and subcards by cardId, and removed the card itself
last, keyed on that board and list. A move to another board landing in
between left the card alive on a board the deleter cannot read, stripped of
every child, with both requests answering 200 (CWE-367). Every hooked
removal had the same shape: collection-hooks runs Cards.before.remove (where
the cascade was) and then removes by the caller's original selector - by
swimlane, delete batch or parent - which a moved card no longer matches. The
custom-field link clean-up did the same to the cards linked to it.
The card document is now the claim (models/lib/claimedCardRemoval.js): the
single and bulk REST deletes remove the card first and cascade only when
that removal matched, and the hooked removals cascade from Cards.after.remove
only when the card is really gone. A list deletion removes a card only while
it is still in that list. The REST board move that loses to a delete is a
404 instead of a 500 from cardMove.
A delete that lost the race, or arrived after the card was moved away from
the named board, is refused and recorded in Admin Panel / Problems as
RaceBleed (authz.card-delete-race, medium, never disables the account): a
stale view is not an attack, and PurgeBleed's critical record used to
disable the member who deleted a card somebody had just moved.
tests/claimedCardRemoval.test.cjs replays the reported race and scans
server/ for any cascade before or without the card's removal;
tests/playwright/specs/race-bleed.e2e.js races 12 moves against deletes
and checks that a surviving card always keeps its checklist.
Thanks to xingmuse and xet7 !
Use an explicit array index when renaming a dropdown option so schema
validation and protected-field checks can preview the update. Match the
option ID at that index to avoid renaming a sibling after a concurrent
removal or reorder, and return 404 when the update no longer matches.
Add handler and browser regressions for persisted names, stable selections,
encoded IDs, missing targets, authorization and protected-field restrictions.
Thanks to AhmedLukman and xet7 !
setAvatarUrl refuses javascript:, file:, data:text/html and every scheme but
http(s), data:image and local paths, but the Users allow rule permits every
profile.* field, so Users.update({$set: {'profile.avatarUrl': ...}}) from the
browser console stored what the method refuses. Not exploitable as reported:
the URL is rendered only as an <img src>, and the server fetches it only
through fetchSafe (http/https). The rule is now models/lib/avatarUrlScheme.js,
used by both avatar methods and by a Users deny rule, which logs the refused
write to Admin Panel / Problems as file.avatar-url. No WeKan client code
writes the field directly, which the test checks.
Verified while checking meifukun's GHSA-g98f-44gc-hqcc, GHSA-x6fh-wrr5-3426,
GHSA-28hr-j65r-grj2, GHSA-mrhx-8xm7-chrq and GHSA-83qj-w8mp-w4qf against the
current code: all five were already fixed (tests/securityMeifukun.test.cjs).
Thanks to meifukun and xet7 !
DELETE /api/boards/:boardId/lists/:listId/cards/:cardId found the card by
board alone, removed its checklists, checklist items, comments and
attachments, and then removed the card by board AND list. With the wrong
list id the card stayed, emptied, and the reply was 200. Only the named list
was asked, so a member a list refuses could strip that list's cards by naming
a list they may write (ListLockBleed follow-up, GHSA-4734-8vrg-8j3w). The card
now has to be in the named list, and its own list is asked too, which records
the attempt in Admin Panel / Problems as authz.list-locked.
The siblings of #6900, #6905 and #6906 answered 200 for a change that changed
nothing: the swimlane, list, card, dependency and board-domain deletions; the
custom-field update, dropdown-item add and rename; the dependency update; the
board-member add and remove; and the token deletion of an unknown user. Each
looks the record up first and answers a JSON 404, and removing a board's last
admin answers 409. Member removal deactivates the user's active entry, not
the first one.
tests/restWriteRoutes404.test.cjs runs each handler with the record missing
and present, and fails for any id-addressed REST write in server/ without a
not-found answer. tests/playwright/specs/rest-write-routes-404.e2e.js replays
them against a running server. Three guards that pinned the old code shape
were updated, keeping what they protect.
Thanks to xet7 !
Return JSON 404 when the board-scoped removal matches no custom field, including missing, wrong-board and repeated deletion requests. Preserve the existing success response, authorization and collection hooks.
Add handler regressions and live API/browser coverage for deletion results, access checks, card value cleanup and unaffected fields.
Reuse the board-scoped integration lookup before deleting, after board-admin
authorization. Missing, wrong-board and already deleted integrations now return
the existing JSON 404 response instead of acknowledging an unmatched selector.
Extend route regressions for deletion, authorization and database errors. Add
live API and browser coverage for rejected and successful deletions, persisted
state and retention of other webhooks in settings.
PUT /api/users/:userId with action takeOwnership called the async
board.changeOwnership() without await: the reply was sent before the board
was changed, and a failed update was an unhandled rejection behind a 200.
Boards.removeMember tested `!ReactiveCache.getUser(memberId)`. On the server
that lookup is async and returns a Promise, which is always truthy, so the
#5330 branch that hard-removes a member whose account was deleted never ran
on the server; such a member was only deactivated and lingered.
Tests pin both, and fail the tree for any un-awaited changeOwnership() or
negated un-awaited ReactiveCache lookup in server/ and models/.
Thanks to xet7 !
Save supported custom-field properties in one board-scoped update so schema validation rejects the entire change before any accompanying fields persist. Preserve the existing authorization, field allowlist and response behavior.
Add handler regressions and live database/browser coverage for rejected settings and types, accepted updates, false values, omitted fields and board scoping.
Match the target user and administrator flag within the same board member, following the existing membership query pattern. Leave boards where the target is only a normal member unchanged.
Cover selection, successful transfers, unchanged unrelated memberships, repeated requests, authorization, and retained browser access.
Read parentId from the request body so single-card creation validates and persists the requested parent, matching the bulk endpoint. Cover persistence, subtask rendering, empty parents and rejected creation requests.
On a large installation the database-problems page filled with collection
scans of queries WeKan makes constantly but never indexed: a user looked
up by services.ldap.id at every LDAP login and sync pass (13,000+ users,
~430 ms per login), cards by assignees or members across every board for
My Cards and the filters (1.1M cards, 1-3.7 s, dozens of times a minute),
and changeHistory by entity and by integrity hash (120,000+ rows, and
growing). Each now has an index, created at startup with ensureIndex like
every other one: services.ldap.id sparse, assignees and members both so
their $or uses an index on each branch, and changeHistory's
{ entityType, entityId, createdAt } and { integrityHash }.
Thanks to Raymond-Voogt and xet7 !
Fixes#6892.
Wait for Accounts.destroyToken to finish so deletion completes before a success response and rejected database writes reach the existing error handler.
Add regression coverage for delayed and failed deletion, authorization, existing token input behavior, session isolation and browser logout.
The Cards.before.update timing hook read modifier.$set[field] for any
update whose first field was a date, but unsetDue/unsetStart/unsetEnd/
unsetReceived send only a $unset. Without a $set the hook threw a
TypeError; with one beside the $unset (a stamped modifiedAt) it wrote an
a-dueAt with timeValue: undefined, which counted as a due date change
(#6081), matched the "date set or changed" rule triggers (#2474), and
showed in the activity feed as an empty date.
server/lib/timingChangeActivity.js now decides it: a date set records
timeValue, a date cleared records timeOldValue alone - the same record a
rule's removeDate writes, and the one models/lib/boardTimeline.js rewinds
- and clearing a date the card does not have records nothing. The rules
skip a cleared date before matching triggers, as server/triggersDef.js
already said they should, and the feed shows only the date it had.
tests/cardTimingActivity.test.cjs runs the real hook: a set, a $unset
alone and a $unset beside a $set (both used to fail), and clearing
nothing; and, tree-wide, no modifier.$set[...] read that assumes the $set
is there. The two guards that pinned the old inline list and its
modifier.$set[action] read now pin the helper instead.
Thanks to xet7 !
GHSA-4734-8vrg-8j3w. A board admin can refuse a role write access in one
list (#4527, list.roleExceptions). The card and comment REST routes and the
DDP checklist writes applied that refusal; the six checklist and
checklist-item REST routes asked only the board, so a member the list
refused still created, renamed, ticked and deleted its cards' checklists
and items with an API token.
They now call assertListNotRefused with the card's list, as the card routes
do, and answer 403. The refusal is recorded in Admin Panel -> Problems as
ListLockBleed (authz.list-locked, medium: recorded, never disables the
account): no screen offers such a write, so it is the lock being stepped
round. The card routes' refusals are recorded through the same gate.
tests/listPermissions.test.cjs scans every REST write route of the tree that
names a card and fails on one that does not ask the list - not only the
per-list card routes it checked before - naming the three that follow their
own rule (a comment's edit and deletion, dependency lines, a bot run's
report), and checks the refusal is recorded. It fails on the old routes.
tests/playwright/specs/list-lock-checklists.e2e.js refuses all six writes in
a locked list with 403, leaves the checklist and item untouched, records the
attempt, and still lets the same member write in an open list and the board
admin in the locked one.
Thanks to tsurutanmen and xet7 !
GHSA-6xqf-jh8x-4wxc. The DDP methods archiveSelectedCards and
createBoardFromCard asked only for the board's write capability. The
Normal, assigned only role has it, but sees and changes only its own
cards, so such a member who knew a card's id archived any card of the
board - and its subtasks - and turned any card into a linked-board
card. Both methods now also ask assignedOnlyAllowsCard, as copyCard
does; archiveSelectedCards checks every card of the selection before it
archives the first, so a refused selection changes nothing.
A refusal is recorded in Admin Panel -> Problems as
UnassignedArchiveBleed (authz.assigned-card-write, medium, never
disabling the account). tests/assignedCardMethods.test.cjs drives the
reported case and fails for any server method that takes a card id and
decides by the board's write access alone;
tests/playwright/specs/assigned-card-methods.e2e.js replays the
reporter's calls against a running server.
Thanks to tsurutanmen and xet7 !
GHSA-qcfm-2g4w-wqcc. Admin Panel / Settings / Visibility / "Only admins
can create boards" (#4475) was checked only inside
createBoardWithInitialSwimlanes, the Add Board form. A non-admin still
created working boards by a client Boards.insert (Boards.allow.insert
approves any signed-in user), POST /api/boards and both board import
routes, as reported, and also by importBoard, cloneBoard, copyBoard,
POST /api/boards/:boardId/copy and createBoardFromCard.
One decision (models/lib/boardCreationPolicy.js) and one guard
(server/lib/boardCreationGuard.js) are asked by every one of those paths
before they write, and by a new Boards.deny insert rule. A board template
stays every member's own; boards WeKan makes itself (a Templates container,
a board's subtasks board) are not created by the user. A REST refusal is
403. A refusal is recorded in Admin Panel / Problems as CreateBleed
(authz.board-creation, low, CWE-863, blocks no account), and Duplicate and
"Create board from card" are hidden like Add Board, so only a client
bypassing the interface reaches it.
tests/createBleed.test.cjs drives the decision, the guard and the real deny
rule against the reporter's console insert, and fails if any path that
creates a board for a user does not ask the guard, or if anything else
reads the setting. tests/playwright/specs/createbleed-board-creation-admin-only.e2e.js
replays the report against a running server. The guards that pinned the
old inline check now pin the shared one.
Thanks to tsurutanmen and xet7 !
Keep accepting the isOverTime request parameter and write its validated value to the isOvertime schema field used by card readers and the UI.
Correct the handler regression and cover JSON/form edits, persistence, API reads, reactive display, reloads and rejected requests.
#6877 made the card PUT write `sort` whenever it is present, so 0 works -
and so would null, '' or 'abc', written as the card's position. The same
handler read `isOverTime` and `description` by truthiness, so false could
not be set and an empty description could not clear the old one.
parseCardScalarFields() in server/lib/restCardHelpers.js now decides all
three by presence and checks them before the first write: sort must be a
finite number (a form-encoded '0' becomes 0), isOverTime true/false or
'true'/'false', description a string (null clears it). Anything else is a
400 and the card is left as it was, rather than half of the edit applied.
tests/restCardSort.test.cjs drives the handler for the accepted values,
refuses the invalid ones with no writes, and fails if any of the three is
read by truthiness again.
Thanks to AhmedLukman and xet7 !
POST /api/boards/:boardId/lists/:listId/cards/:cardId/customFields/:customFieldId
threw Meteor.Error(404) when no unarchived card matched the board, list and
card id. A WebApp handler is a plain connect handler, so that reached the
client as HTTP 500. It now answers through sendJsonResult with a JSON 404,
as the card archive/restore endpoints do since #6876.
tests/restHandlerNotFound.test.cjs drives the handler for a matching card,
a missing card, the wrong list, the wrong board and an archived card, and
scans every WebApp.handlers route in the source tree so no REST handler
can answer not-found by throwing Meteor.Error(404) again.
Thanks to AhmedLukman and xet7 !
Check whether sort is supplied so JSON updates can persist a zero position. Keep the existing scoped update and history handling, and add handler and browser regressions for ordering, persistence, omitted values and rejected requests.