Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@passflow/core

Latest version: v0.37.0

Overview

Last scanned
29 Nov 2026
Published
29 Nov 2026
npm package Publisher: ivan_holiak, jackrudenko
0 Stars
0 Forks
34 Versions
6.9K Downloads
TypeScript Repo language

Scan summary

@passflow/core was last scanned on 29 Nov 2026 at version 0.37.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 34 versions; the latest 5 were published within 5 days (25–29 Nov 2026).
  • Findings: No rules fired in version 0.37.0.
  • Downloads: 6,864 downloads.

Versions

34 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.37.0 LATEST 29 Nov 2026 No rules fired
0.36.1 29 Nov 2026 No rules fired
0.36.0 29 Nov 2026 No rules fired
0.35.3 25 Nov 2026 Not shown
0.35.2 25 Nov 2026 Not shown

No rules fired in 0.37.0

Findings

Findings for v0.37.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.37.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Passflow JavaScript SDK Documentation

Changelog

Version 0.37.0
  • Added: the preferred second factor. getPreferredTwoFactorMethod() answers the method the signed-in user prefers on this app, or null; setPreferredTwoFactorMethod(method) stores one and answers it; clearPreferredTwoFactorMethod() removes it. The same calls are on passflow.twoFactor as getPreferredMethod(), setPreferredMethod(method) and clearPreferredMethod(). Their Error reports carry the operations 2fa.preferred-method.read, 2fa.preferred-method.set and 2fa.preferred-method.clear.
  • Added: suggested_method and account_hint on TwoFactorChallengeResponse, and account_hint on TwoFactorEnrollmentResponse.
  • Added: preferred on RegisteredTwoFactorMethod, so getRegisteredMethods() marks the preferred method.
  • Added: reset on the answer of validateTwoFactorSetupMagicLink, on the session from getMagicLinkSession() and on the TwoFactorSetupMagicLinkValidated payload. It is true for a link an administrator sent to replace an enrolled authenticator, otherwise false.
  • Changed on the server: a code check for a user with no second factor answers 400 error.2fa.not_enabled (it was 401). verifyTwoFactor and useTwoFactorRecoveryCode reject with it, and the session and the pending sign-in are kept.
  • These fields and calls need Passflow server v0.84.1 or later. An older server leaves the fields out, and the preferred-method calls reject with its 404.
Version 0.36.1
  • Added: AppSettings.connections (type AppSettingsConnection, { id, name, provider }), the enabled, verified enterprise connections a sign-in button may offer, as GET /app/settings answers them; absent when the server has no connection storage. Pass `conn_${id}` as the provider to federatedAuthWithRedirect / federatedAuthWithPopup.
Version 0.36.0
  • Added: enterprise SSO. enterpriseResolve(email) answers which enterprise (OIDC or SAML) connections the app offers for the email's domain, as { available, connections }, each connection with connection_id, display_name and protocol. enterpriseStart(payload) starts a sign-in through a connection, given its connection_id or an email, with a POST that answers { auth_url } and carries the anti-bot header on a human_only app. createEnterpriseAuthUrl(payload) builds the same start as a GET address for a plain link. Needs Passflow server v0.79.0 or later. See docs/enterprise-sso.md.
  • Added: federatedAuthWithRedirect and federatedAuthWithPopup take conn_<connection_id> as the provider, so a "Sign in with SSO" button keeps PKCE and the landing exchange.
  • Added: the refusal ids ENTERPRISE_CONNECTION_AMBIGUOUS_ERROR_ID, ENTERPRISE_NO_CONNECTION_ERROR_ID, ENTERPRISE_EMAIL_INVALID_ERROR_ID and ENTERPRISE_START_INPUT_ERROR_ID, matched on PassflowError.id. A 429 rejects with the raw HTTP error, as for every other POST.
Version 0.35.3
  • Fixed: in cookie and BFF mode a call answered 401 refreshes the session once and is sent once more, so an expired access cookie with a good refresh cookie no longer fails the call or marks the session invalid. Calls answered 401 together share one refresh. When the refresh fails, the session has ended, or the second send is also answered 401, the call rejects with the 401 and the session is marked invalid, as before. /auth/refresh, logout, the sign-in calls, the hosted session's calls, calls made with their own bearer and step-up 401s are not sent again. This needs a Passflow server that answers 401 for a missing or expired access token.
  • Fixed: after the first cookie-mode sign-in on a page, API calls carry withCredentials and the X-CSRF-Token header at once. Each API client kept the delivery mode it read when it was built, so those calls went out without them until the next page load.
  • Fixed: setAppId() reloads the in-memory token cache, so getCachedTokens() returns what is stored for the new app and no longer the previous app's tokens.
  • Fixed: a token refresh, step-up commit or page-load session check still unanswered when setAppId() switches from one app id to another no longer applies its answer to the new app, and setAppId() then checks the new app's cookie or BFF session itself. A step-up commit answered after the switch rejects with UpgradeCommitInterruptedError (superseded). setAppId() with the app id the instance already has changes nothing, and the first app id given to an instance built without one keeps what is on its way.
  • Fixed: a sign-in answer whose tokens were issued for another app than the current app id is refused with an error and stores nothing.
Version 0.35.2
  • Fixed: the cookie and BFF session is stored per app. The session state, delivery mode, CSRF token and cookie-mode ID token are kept under passflow_session_state:<appId>, passflow_delivery_mode:<appId>, passflow_csrf_token:<appId> and passflow_id_token:<appId>, so two apps on one origin no longer change each other's session: one app's sign-in, sign-out or delivery mode leaves the other's alone. With no app id the keys are unchanged. Values stored by an earlier version under the plain keys are not read once an app id is set. After updating, users of an app that sets an app id and uses cookie or BFF delivery sign in once again. setAppId() reads the delivery mode and session state of the new app.
  • Fixed: in cookie mode the session check on load (GET /user/me) takes a 2xx answer that holds the user (an object with an id) as a valid session and passes that user to SessionRestored. It looked for a valid field the server does not send, so every load marked a good session invalid and isAuthenticated() returned false. A 2xx with any other body, a 401, any other error or a network failure marks the session invalid. PassflowSessionValidationResponse is replaced by PassflowSessionUser, the user object.
Version 0.35.1
  • Fixed: a federated start that answers with an auth_url (a human_only app, or the agentTool option) is followed only when the address is http or https. Any other address fails the start with an Error whose operation is federated.redirect or federated.popup, and a pending popup is closed.
Version 0.35.0
  • Fixed: a session with an access token and no refresh token stays signed in when the page becomes visible again and when another tab signs the same user in. It ends when its access token is gone from storage, when the user signs out, or when another user signs in.
  • Changed: a new session (a sign-in, tokens in the URL, setTokens()) replaces the stored one. A call to setTokens() with only a new access token drops the stored refresh token, ID token and scopes. Pass every token you want to keep; read the current ones with getTokens() or getCachedTokens().
  • A tab that holds a refresh token gets SignOut with origin other-tab after 2 s when another tab replaces the session with one that has no refresh token.
  • getTokens(true) and session({ doRefresh: true }) resolve undefined for an expired access token with no refresh token, so expiredSession is called.
Version 0.34.0
  • App settings carry bot_mode and anti_bot. On a human_only app the SDK adds X-Passflow-Anti-Bot to the covered sign-in calls: login, register, passwordless start, passkey register and authenticate start, password reset send and federated start. The value is a built-in proof of work, solved in dist/anti-bot-worker.js (antiBotWorkerUrl) or on the main thread, or a token from setAntiBotTokenProvider(). A bot_friendly app, or an unknown bot mode, sends the same requests as before. See docs/anti-bot.md.
  • antiBotToken() gives the header value for calls the SDK does not make itself. The per-call agentTool option sends X-Passflow-Agent-Tool: 1. New events: anti-bot:solving and anti-bot:solved.
  • A challenge whose max is above 5,000,000 is refused, and a solve still running after 60 s is stopped. Both reject with error.anti_bot.solve_failed.
  • Fixed: federatedAuthWithPopup opens the popup inside the click, before any request, and fills in the address afterwards, so a slow settings read no longer gets the popup blocked.
Version 0.33.0
  • listSessions() lists the signed-in user's sessions; the caller's own has current: true. revokeSession(sessionId) ends one; ending the session this instance is signed in with signs out like logOut(). signOutOtherSessions() ends every other session and resolves to { revoked }.
  • New types: PassflowUserSession, PassflowSessionDevice, PassflowUserSessionList and PassflowRevokeOtherSessionsResponse. Errors carry the operation session.list, session.revoke or session.revoke-others.
Version 0.32.1
  • Fixed: new Passflow() no longer reads or creates the device id in constructors; the first request does. Constructing the SDK during a server render no longer calls crypto.randomUUID().
  • Fixed: the device id, scopes, invitation token and previous redirect URL keys honour keyStoragePrefix. A value stored under the old unprefixed key is still used, and moved to the prefixed key on first read. With no prefix nothing changes.
  • Fixed: with storage that keeps nothing, one Passflow instance sends one device id instead of a new one per request. An empty stored scope list is kept as empty.
Version 0.32.0
  • passflow.withAuth(fetch, { origins }), passflow.attachAuth(axios, { origins }) and passflow.createClient(config, { origins }) add Authorization: Bearer <access token> to a request for the page's own origin or a listed origin when the request has no Authorization header, refreshing an expired token first. Other origins get no token. Before, they only handled step-up, so a request without the header now carries one. See Calling your API with the access token.
  • WithAuthOptions is exported.
Version 0.31.0

Matches the SDK to the server's real two-factor, step-up and sign-out answers.

Breaking:

  • getTwoFactorEnrollment() returns { enrollment, totp_digits?, totp_period? }, not the bare string.
  • 2FA types follow the server: status has no policy; confirm is { enabled, recovery_codes? }, disable { disabled }, regenerate { recovery_codes }; remaining_recovery_codes is optional; requires_2fa and device_trusted are gone (a tfa_token marks a pending second factor). getAvailableMethods() and getRegisteredMethods() return the arrays, not the server's wrapper.
  • TwoFactorDeviceTrusted is no longer emitted (@deprecated): device trust is a server cookie.
  • A sign-up that signs the user in emits Register and then SignIn; verifyV2 emits SignIn after TwoFactorVerified when it completes a sign-in.
  • After a hosted sign-in (authRedirect()), logOut() also ends the hosted login's session: after the local sign-out it navigates to /oidc/end_session with id_token_hint and post_logout_redirect_uri (default: where the sign-in landed; logOut({ postLogoutRedirectUri }) overrides it, and it must match a registered redirect URL). Code after await logOut() may not run.
  • Stored tokens whose aud does not name this instance's app id no longer count as a session, and this app's sign-out leaves another app's stored session in place.
  • session({ createSession, expiredSession }) now runs for every completed sign-in, including signIn, signUp, passkeyRegister and v2 verify.
  • Step-up offers exactly the factors in the server's available_factors, in its order (UpgradeChallenge.availableFactors?); without the field it suggests TOTP before passkey.
  • A 429 on a step-up round is UpgradeTransportError kind rate_limited (it was fatal), with the server's message and retryAfter from Retry-After; the surfaces settle it as exhausted.
  • Response types that strict TypeScript code reads now say what the server may leave out. Handle undefined for these, and stop checking success where it is gone:
    • AppSettings: secret, active, redirect_urls, origins, defaults, custom_sms_messages, invite_only_registration, create_tenant_on_registration and debug_otp_code_allowed are optional.
    • TwoFactorVerifyResponseV2.success is removed (a v2 verify that returns tokens succeeded).
    • success on TwoFactorVerifyResponse and TwoFactorRecoveryResponse is optional.
    • RegisteredTwoFactorMethod.id, .name and .created_at, and TwoFactorChallengeResponse.alternative_methods, are optional.
    • The TwoFactorRecoveryUsed event payload's remainingCodes is optional.

New:

  • UpgradeSignInRequiredError (upgrade_sign_in_required) and isUpgradeSignInRequired(res): the step-up 403's sign_in_required: true (prompt=login, max_age=0, an expired max_age with no factor to meet it; from older servers, an empty available_factors) means no step-up can meet it and the user must sign in again. No prompt opens; an open prompt is closed through the new optional onClosed. An empty list with sign_in_required: false is UpgradeUnsatisfiableError: no factor of this account reaches the level.
  • passflow.hostedUpgrade refuses to re-prove a requirement it proved in the last 10 seconds (or within its max_age, if shorter) with UpgradeInsufficientError, so a refused proof cannot loop. A sign-in or sign-out clears it. Keep every elevation window at 10 seconds or more (see Known limits).
  • PassflowPasswordChangeRequiredError and PASSWORD_CHANGE_REQUIRED_ERROR_ID for a 403 error.api.password.change.required.
  • device_trust_available? on the v2 challenge and the enrolment answer; redirect_url? and form_post? on the v1 and v2 verify answers for a sign-in with an OIDC parent.

Fixed:

  • The TOTP digit count is read from enrolment and the v2 challenge too, so an 8-digit enrolment works on a fresh sign-in; the count resets with each new second-factor step.
  • verifyV2 completes the sign-in (it waited for a success field the server never sends).
  • Recovery codes are checked only for their form; the server decides.
  • PassflowError.name is 'PassflowError'.

Known limits:

  • The hostedUpgrade memory assumes the app's elevation window (auth_assurance.elevation_max_age) is at least 10 seconds. Servers before src/v0.50.0 accept any window, so the 10 s minimum does not apply on them. src/v0.50.0 (not yet released) refuses new windows under 10 seconds but keeps a shorter one already stored. With a window under 10 seconds, a re-challenge for the same requirement within 10 seconds of the proof is refused with UpgradeInsufficientError, costing the user one extra sign-in. Keep every window at 10 seconds or more, and re-save any shorter one.
  • A stale session (max_age expired) asked for a level none of the account's factors reaches gets sign_in_required: true first. After the fresh sign-in, the level refusal follows as UpgradeUnsatisfiableError, so that sign-in cannot help.
  • A cookie or BFF session that stores no ID token makes another app's session undetectable, so this app's logOut() clears the shared delivery mode. It fails safe: the other app is signed out, never wrongly signed in.
Version 0.30.1
  • Fixed: setAppId() on an instance built with an appId now changes the X-Passflow-ClientID header that later requests send. Before, they kept sending the app id from construction.
Version 0.30.0

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @passflow/core

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

Frame 2085668439 (1)
Group 1261154229