{"answers":{"affected":"12 open source packages ship an affected version, including phlex.","exploited":"There is no known exploitation of GHSA-w67g-2h6v-vjgq in the wild and no public exploit code.","fix":"Upgrade phlex to a fixed version for your release line: 1.11.1, 2.0.2, 2.1.3 or 2.2.2.","what":"GHSA-w67g-2h6v-vjgq is a cross-site scripting vulnerability in phlex, published on 6 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-w67g-2h6v-vjgq and fix it if it is affected.\n\nWhat it is: GHSA-w67g-2h6v-vjgq is a cross-site scripting vulnerability in phlex, published on 6 Feb 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-w67g-2h6v-vjgq in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- phlex (RubyGems): affected all versions; fixed in 1.11.1\n- phlex (RubyGems): affected all versions; fixed in 1.11.1\n- phlex (RubyGems): affected from 2.0.0.beta1; fixed in 2.0.2\n- phlex (RubyGems): affected from 2.0.0.beta1; fixed in 2.0.2\n- phlex (RubyGems): affected from 2.1.0; fixed in 2.1.3\n- phlex (RubyGems): affected from 2.1.0; fixed in 2.1.3\n- phlex (RubyGems): affected from 2.2.0; fixed in 2.2.2\n- phlex (RubyGems): affected from 2.2.0; fixed in 2.2.2\n- phlex (RubyGems): affected from 2.3.0; fixed in 2.3.2\n- phlex (RubyGems): affected from 2.3.0; fixed in 2.3.2\n- phlex (RubyGems): affected from 2.4.0.beta1; fixed in 2.4.1\n- phlex (RubyGems): affected from 2.4.0.beta1; fixed in 2.4.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-w67g-2h6v-vjgq/ (Markdown: https://insights.sbomify.com/GHSA-w67g-2h6v-vjgq/index.md)","id":"GHSA-w67g-2h6v-vjgq","markdown":"https://insights.sbomify.com/GHSA-w67g-2h6v-vjgq/index.md","name":"GHSA-w67g-2h6v-vjgq","record":{"aliases":[],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby HTML library","requires_auth":"none","summary":"Attackers can bypass XSS protections in Phlex via attribute splatting, dynamic tags, or href values, requiring user interaction to execute scripts.","user_interaction":"required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nDuring a security audit conducted with Claude Opus 4.6 and GPT-5.3-Codex, we identified three specific ways to bypass the XSS (cross-site-scripting) protection built into Phlex.\n\n1. The first bypass could happen if user-provided attributes with string keys were splatted into HTML tag, e.g. `div(**user_attributes)`.\n2. The second bypass could happen if user-provided tag names were passed to the `tag` method, e.g. `tag(some_tag_name_from_user)`.\n3. The third bypass could happen if user’s links were passed to `href` attributes, e.g. `a(href: user_provided_link)`.\n\nAll three of these patterns are meant to be safe and all have now been patched.\n\n### Patches\n\nPhlex has patched all three issues and introduced new tests that run against Safari, Firefox and Chrome.\n\nThe patched versions are:\n\n- [2.4.1](https://rubygems.org/gems/phlex/versions/2.4.1)\n- [2.3.2](https://rubygems.org/gems/phlex/versions/2.3.2)\n- [2.2.2](https://rubygems.org/gems/phlex/versions/2.2.2)\n- [2.1.3](https://rubygems.org/gems/phlex/versions/2.1.3)\n- [2.0.2](https://rubygems.org/gems/phlex/versions/2.0.3)\n- [1.11.1](https://rubygems.org/gems/phlex/versions/1.11.1)\n\nPhlex has also patched the [`main`](https://github.com/yippee-fun/phlex) branch in GitHub.\n\n### Workarounds\nIf a project uses a secure CSP (content security policy) or if the application doesn’t use any of the above patterns, it is not at risk.","ecosystems":["RubyGems"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Phlex XSS protection bypass via attribute splatting, dynamic tags, and href values","id":"GHSA-w67g-2h6v-vjgq","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":12,"n_references":null,"packages":[{"ecosystem":"RubyGems","fixed":["1.11.1"],"introduced":["0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["1.11.1"],"introduced":["0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.0.2"],"introduced":["2.0.0.beta1"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.0.2"],"introduced":["2.0.0.beta1"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.1.3"],"introduced":["2.1.0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.2.2"],"introduced":["2.2.0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.3.2"],"introduced":["2.3.0"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.3.2"],"introduced":["2.3.0"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.4.1"],"introduced":["2.4.0.beta1"],"last_affected":[],"package":"phlex","purl":null,"source":"GHSA-w67g-2h6v-vjgq"},{"ecosystem":"RubyGems","fixed":["2.4.1"],"introduced":["2.4.0.beta1"],"last_affected":[],"package":"phlex","purl":"pkg:gem/phlex","source":"GHSA-w67g-2h6v-vjgq"}],"products":null,"published":"2026-02-06","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can bypass XSS protections in Phlex via attribute splatting, dynamic tags, or href values, requiring user interaction to execute scripts.","url":"https://insights.sbomify.com/GHSA-w67g-2h6v-vjgq/"}