Semantic MediaWiki 7.4.0

From semantic-mediawiki.org
Semantic MediaWiki 7.4.0
Release date: November 2, 2026
Previous version: Semantic MediaWiki 7.3.1
Next version: Semantic MediaWiki 7.4.1
Compatible with: MW 1.43.x - 1.46.x
Current version:
SMW 7.4.1

Version 7.4.0 of Semantic MediaWiki is a minor release. It contains new features and bug fixes, no breaking changes, and is compatible with the same MediaWiki (1.43 to 1.46) and PHP (8.1 to 8.5) versions as SMW 7.3.1. It adds the {{#property_search_link:}} parser function and job-queue rebuilds for the full-text search index, and fixes three security vulnerabilities (two cross-site scripting and one missing-authorization) reported through GitHub security advisories, along with several bug fixes. Some of the security fixes tighten input handling and may reject requests that previously succeeded. See the English language RELEASE NOTES below on this page for further information.

Please refer to the help pages on installing or upgrading Semantic MediaWiki for detailed instructions on how to do this.

Semantic MediaWiki 7.4.0

Released on November 2, 2026.

This is a minor release. Thus, it contains no breaking changes, only new features and fixes. Some of the security fixes tighten input handling and may reject requests that previously succeeded.

Like SMW 7.3.1, this version is compatible with MediaWiki 1.43 up to 1.46 and PHP 8.1 up to 8.5. For more detailed information, see the compatibility matrix.

New features and enhancements

  • Added chunked and job queue rebuilds to rebuildFulltextSearchTable.php, so the full-text search index can be rebuilt on hosts that stop long-running scripts (#7133)
  • Added the {{#property_search_link:}} parser function for linking to Special:SearchByProperty with any value, including values with characters such as /, # or [ that a hand-written subpage link cannot carry: {{#property_search_link:Has text|AC/DC #1}} and {{#property_search_link:Has text|AC/DC #1|custom label}} (#7179)

Security fixes

  • Fixed a cross-site scripting (XSS) vulnerability in Special:Ask where file-export and raw-mode results fetched through request_type were served as HTML, so a user-supplied CSV or DSV separator, or a stored property value, could execute; these responses are now served as plain text (GHSA-54fg-5p78-mhg8)
  • Fixed a cross-site scripting (XSS) vulnerability in Special:Browse where an Allows pattern property value was rendered without HTML escaping (GHSA-x29v-5v76-f3xg)
  • Fixed a missing authorization check in the smwtask API where the check-query task authorized against the wiki-wide edit right instead of the caller's permission to edit the requested page, completing the earlier fix for GHSA-rjqv-6r83-pg8v (GHSA-qhqw-xc5w-pp27)

Bug fixes

  • Fixed Special:Version listing the Elasticsearch server twice on wikis that also run CirrusSearch (#7143)
  • Fixed flag settings such as $smwgDVFeatures being unable to switch off a default flag. If you add a single flag, as in $smwgDVFeatures[] = 'wpv-pipetrick';, now also list the default flags you want to keep (#7135)
  • Fixed an ArgumentCountError since 7.3.1 in extensions such as the listwidget format of Semantic Result Formats (#7137)
  • Fixed OpenSearch being taken for Elasticsearch 7.10.2 when it runs in the compatibility mode that CirrusSearch on MediaWiki 1.43 requires (#7142)
  • Fixed page content jumping while the entity examiner checks a page; its indicator now shows only when a check finds an issue (#7150)
  • Fixed editing schemas with the Page Schemas extension, broken since 7.0.0 (#7154)
  • Fixed URL values containing a space linking to a different URL: http://example.org/Foo bar and http://example.org/Foo%20bar now link to http://example.org/Foo%20bar, not http://example.org/Foo_bar. Foo bar and Foo_bar are now different values, so a query for one no longer finds the other. Link text now shows an underscore as an underscore, not as a space (#7139)
  • Fixed the help links of the maintenance scripts on Special:SemanticMediaWiki (#7151)
  • Fixed pages with #ask queries being parsed twice for each user language or other parser cache variant first viewed after one of their query dependencies changed, on wikis with $smwgEnabledQueryDependencyLinksStore enabled (#7155)
  • Fixed a DataItemHandlerException stopping page rendering and rebuildData.php when a query prints a stored value that can no longer be read; such values are now left out of the result (#7161)
  • Fixed page views and maintenance scripts failing with a TypeError on MediaWiki 1.47, which removed $wgCachePrefix (#7163)
  • Fixed rebuildFulltextSearchTable.php running slower since 7.0.0: it made a cache lookup for every stored value, which is a database query on most wikis when run from the command line, and now makes one per property (#7165)
  • Fixed Special:Ask links and stored query strings wrapping an OR query in redundant <q> tags, which could push it past $smwgQMaxDepth and break its link. Existing links keep working. [[A::1]] OR [[B::2]] now stays as typed, so to append a condition to both sides of a copied query, enclose the OR part in <q>…</q> (#7173)
  • Fixed query results showing the namespace on pages whose display title repeats it; Help:Bar (inactive) is now listed as Bar (inactive) unless prefix asks for the long form (#7169)
  • Fixed a slowdown since 7.0.0: reading a property's type, a page's display title or other cached page data ran a database query every time on wikis that cache in the database, which includes maintenance scripts such as rebuildData.php by default (#7168)
  • Fixed a "further results" link being added to the page when an inline query with a searchlabel that holds only an HTML comment, such as searchlabel=<!-- -->, is substituted with subst: (#7171)
  • Fixed valid language tags that MediaWiki has no name for being rejected, such as ja-Latn-hepburn in the Monolingual text value Rashōmon@ja-Latn-hepburn. A tag is now also accepted when it is well-formed and MediaWiki knows its primary language (#7172)
  • Fixed setupStore.php and update.php crashing on SQLite with near "_temp": syntax error when a table has an obsolete column, such as after changing the type of a property in $smwgFixedProperties (#7178)
  • Fixed rebuildData.php failing with Unknown column 'o_blob' (or another column) for a property in $smwgFixedProperties whose page declares a type other than the one its table was created with, such as after setupStore.php on an empty store; a full rebuild now updates these tables after rebuilding the property pages if they hold no values, and a table with values still needs setupStore.php (#7175)

Upgrading

No need to run "update.php" or any other migration scripts.

However, if your wiki uses properties of type URL or Annotation URI, run php maintenance/run.php SemanticMediaWiki:rebuildData after upgrading. Until then, queries on values containing a space may return wrong results.

Get the new version via Composer:

  • Step 1: if you are upgrading from SMW older than 7.0.0, ensure the SMW version in composer.local.json is ^7.4.0
  • Step 2: run composer in your MediaWiki directory: composer update --no-dev --optimize-autoloader

Get the new version via Git:

This is only for those who have installed SMW via Git.

  • Step 1: do a git pull in the SemanticMediaWiki directory
  • Step 2: run composer update --no-dev --optimize-autoloader in the MediaWiki directory
Cookies help us deliver our services. By using our services, you agree to our use of cookies.