Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.
JavaScript aianthropiccross-platformgeminigroqlinuxmacosnvidiaopen-sourceopenaiparakeetspeech-to-texttranscribewhisperwindows
chore(mobile): Set release version to 1.2.1 (#2460)
Chad Piha85b01157f597
diff --git a/.github/workflows/mobile-ci.yml b/.github/workflows/mobile-ci.ymlindex 4336b65c0..16977c793 100644--- a/.github/workflows/mobile-ci.yml+++ b/.github/workflows/mobile-ci.yml@@ -39,7 +39,7 @@ jobs:run: npx --yes --ignore-scripts [email protected] lockfile-lint --path openwhispr-mobile/package-lock.json --type npm --validate-https --allowed-hosts npm --validate-integrity- name: Reject high and critical dependency advisoriesworking-directory: openwhispr-mobile- run: npm audit --package-lock-only --ignore-scripts --audit-level=high+ run: npx --yes --ignore-scripts [email protected] audit-ci --config audit-ci.jsonchecks:name: Mobile ${{ matrix.check }}@@ -67,6 +67,8 @@ jobs:run: npm ci --ignore-scripts --no-audit --no-fund- name: Apply reviewed dependency patchesrun: node_modules/.bin/patch-package --error-on-fail+ - name: Verify patched signing dependency+ run: npm run test:security- name: Check formattingif: matrix.check == 'static'run: npm run formatdiff --git a/openwhispr-mobile/app.base.json b/openwhispr-mobile/app.base.jsonindex 763aa8a3a..272f3c27e 100644--- a/openwhispr-mobile/app.base.json+++ b/openwhispr-mobile/app.base.json@@ -4,7 +4,7 @@"slug": "openwhispr-mobile","scheme": "openwhispr","owner": "gizmo-labs",- "version": "1.2.2",+ "version": "1.2.1","orientation": "portrait","icon": "./assets/icon.png","userInterfaceStyle": "light",diff --git a/openwhispr-mobile/audit-ci.json b/openwhispr-mobile/audit-ci.jsonnew file mode 100644index 000000000..57918e3ae--- /dev/null+++ b/openwhispr-mobile/audit-ci.json@@ -0,0 +1,15 @@+{+ "$schema": "https://github.com/IBM/audit-ci/raw/main/docs/schema.json",+ "high": true,+ "package-manager": "npm",+ "extra-args": ["--package-lock-only", "--ignore-scripts"],+ "allowlist": [+ {+ "GHSA-86w9-cpqp-85rv": {+ "active": true,+ "expiry": "2026-11-01T00:00:00Z",+ "notes": "node-forge 1.4.0 is patched with the nested DigestAlgorithm validation from https://github.com/digitalbazaar/forge/pull/1152. npm audit cannot detect patch-package fixes. CI and postinstall run test:security against every locked copy before Expo tools run. Remove this exception and the patch when an upstream fixed release is installed; review by 2026-11-01."+ }+ }+ ]+}diff --git a/openwhispr-mobile/package.json b/openwhispr-mobile/package.jsonindex 5cf1e3e0a..9f5a61ad6 100644--- a/openwhispr-mobile/package.json+++ b/openwhispr-mobile/package.json@@ -22,8 +22,9 @@"clean": "npm run format && npm run lint && npm run typecheck","pretest": "npm rebuild better-sqlite3","test": "jest",+ "test:security": "node --test scripts/__tests__/node-forge.test.js","test:watch": "jest --watch",- "postinstall": "patch-package && npm run download:brand-fonts",+ "postinstall": "patch-package --error-on-fail && npm run test:security && npm run download:brand-fonts","eas-build-pre-install": "bundle install"},"engines": {diff --git a/openwhispr-mobile/patches/node-forge+1.4.0.patch b/openwhispr-mobile/patches/node-forge+1.4.0.patchnew file mode 100644index 000000000..651585d71--- /dev/null+++ b/openwhispr-mobile/patches/node-forge+1.4.0.patch@@ -0,0 +1,22 @@+diff --git a/node_modules/node-forge/lib/rsa.js b/node_modules/node-forge/lib/rsa.js+--- a/node_modules/node-forge/lib/rsa.js++++ b/node_modules/node-forge/lib/rsa.js+@@ -1168,11 +1168,16 @@+ parseAllBytes: options._parseAllDigestBytes+ });++- // validate DigestInfo structure and element count++ // validate DigestInfo structure and element counts (outer DigestInfo++ // and nested DigestAlgorithm). asn1.validate ignores extra children,++ // so length must be checked explicitly at each nesting level to++ // prevent low-exponent PKCS#1 v1.5 signature forgery (CVE-2026-85393).+ var capture = {};+ var errors = [];+ if(!asn1.validate(obj, digestInfoValidator, capture, errors) ||+- obj.value.length !== 2) {++ obj.value.length !== 2 ||++ obj.value[0].value.length !==++ (('parameters' in capture) ? 2 : 1)) {+ var error = new Error(+ 'ASN.1 object does not contain a valid RSASSA-PKCS1-v1_5 ' ++ 'DigestInfo value.');diff --git a/openwhispr-mobile/scripts/__tests__/node-forge.test.js b/openwhispr-mobile/scripts/__tests__/node-forge.test.jsnew file mode 100644index 000000000..98e70e37c--- /dev/null+++ b/openwhispr-mobile/scripts/__tests__/node-forge.test.js@@ -0,0 +1,80 @@+const assert = require('node:assert/strict');+const { Buffer } = require('node:buffer');+const { generateKeyPairSync } = require('node:crypto');+const path = require('node:path');+const { test } = require('node:test');+const lockfile = require('../../package-lock.json');++const forgePaths = Object.keys(lockfile.packages).filter((entry) =>+ entry.endsWith('node_modules/node-forge'),+);+assert.ok(forgePaths.length > 0, 'Expected the Expo signing dependency in the lockfile');++const { privateKey: privatePem } = generateKeyPairSync('rsa', {+ modulusLength: 2048,+ publicExponent: 3,+ privateKeyEncoding: { type: 'pkcs1', format: 'pem' },+ publicKeyEncoding: { type: 'pkcs1', format: 'pem' },+});++// Exercise every locked copy: a nested, unpatched dependency must also block CI.+for (const forgePath of forgePaths) {+ const forge = require(path.resolve(__dirname, '../..', forgePath));+ const privateKey = forge.pki.privateKeyFromPem(privatePem);+ const publicKey = forge.pki.setRsaPublicKey(privateKey.n, privateKey.e);+ const { asn1 } = forge;+ const digest = forge.md.sha256.create().update('OpenWhispr update manifest').digest().getBytes();++ for (const includeNull of [false, true]) {+ for (const extraElements of [0, 1, 2]) {+ test(`${forgePath}: ${extraElements} extra elements, NULL=${includeNull}`, () => {+ const algorithm = [+ asn1.create(+ asn1.Class.UNIVERSAL,+ asn1.Type.OID,+ false,+ asn1.oidToDer(forge.oids.sha256).getBytes(),+ ),+ ];+ if (includeNull) {+ algorithm.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, ''));+ }+ for (let index = 0; index < extraElements; index++) {+ algorithm.push(+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, 'garbage'),+ );+ }+ const digestInfo = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, algorithm),+ asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, digest),+ ]);+ // Sign a deliberately malformed DigestInfo to isolate the parser flaw in CVE-2026-85393.+ const signature = privateKey.sign(asn1.toDer(digestInfo).getBytes(), 'NONE');+ if (extraElements > 0) {+ assert.throws(() => publicKey.verify(digest, signature), /DigestInfo/);+ } else {+ assert.equal(publicKey.verify(digest, signature), true);+ assert.equal(publicKey.verify('different digest', signature), false);+ }+ });+ }+ }+}++test('Expo can still sign and verify an update with its code-signing certificate', () => {+ const signing = require('@expo/code-signing-certificates');+ const keyPair = signing.generateKeyPair();+ const certificate = signing.generateSelfSignedCodeSigningCertificate({+ keyPair,+ validityNotBefore: new Date('2026-01-01T00:00:00Z'),+ validityNotAfter: new Date('2030-01-01T00:00:00Z'),+ commonName: 'OpenWhispr security regression test',+ });+ assert.doesNotThrow(() =>+ signing.signBufferRSASHA256AndVerify(+ keyPair.privateKey,+ certificate,+ Buffer.from('test update'),+ ),+ );+});