{"url":"http://public2.vulnerablecode.io/api/packages/98367?format=json","purl":"pkg:rpm/redhat/rubygem-rails-html-sanitizer@1.4.3-2?arch=el8sat","type":"rpm","namespace":"redhat","name":"rubygem-rails-html-sanitizer","version":"1.4.3-2","qualifiers":{"arch":"el8sat"},"subpath":"","is_vulnerable":true,"next_non_vulnerable_version":null,"latest_non_vulnerable_version":null,"affected_by_vulnerabilities":[{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/54125?format=json","vulnerability_id":"VCID-ete9-xwuw-puf8","summary":"Rails::Html::Sanitizer vulnerable to Cross-site Scripting\nVersions of Rails::Html::Sanitizer prior to version 1.4.3 are vulnerable to XSS with certain configurations of Rails::Html::Sanitizer which  allows an attacker to inject content when the application developer has overridden the sanitizer's allowed tags to allow both `select` and `style` elements. Code is only impacted if allowed tags are being overridden. \n\nThis may be done via application configuration: ```ruby# In config/application.rbconfig.action_view.sanitized_allowed_tags = [\"select\", \"style\"]```\n\nsee https://guides.rubyonrails.org/configuring.html#configuring-action-view\n\nOr it may be done with a `:tags` option to the Action View helper `sanitize`: ```<%= sanitize @comment.body, tags: [\"select\", \"style\"] %>``` \n\nsee https://api.rubyonrails.org/classes/ActionView/Helpers/SanitizeHelper.html#method-i-sanitize \n\nIt may also be done with Rails::Html::SafeListSanitizer directly: \n```ruby# class-level optionRails::Html::SafeListSanitizer.allowed_tags = [\"select\", \"style\"]```  or with\n```ruby# instance-level optionRails::Html::SafeListSanitizer.new.sanitize(@article.body, tags: [\"select\", \"style\"])```\n\nAll users overriding the allowed tags by any of the above mechanisms to include both \"select\" and \"style\" are recommended to upgrade immediately. A workaround for this issue can be applied by removing either `select` or `style` from the overridden allowed tags.","references":[{"reference_url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-32209.json","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N"}],"url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2022-32209.json"},{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2022-32209","reference_id":"","reference_type":"","scores":[{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.892","published_at":"2026-04-09T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89217","published_at":"2026-04-18T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89204","published_at":"2026-04-13T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89207","published_at":"2026-04-12T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89211","published_at":"2026-04-11T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89196","published_at":"2026-04-08T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89275","published_at":"2026-05-09T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89264","published_at":"2026-05-07T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89247","published_at":"2026-05-05T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89178","published_at":"2026-04-07T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89239","published_at":"2026-04-29T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89236","published_at":"2026-04-26T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.8923","published_at":"2026-04-24T12:55:00Z"},{"value":"0.04566","scoring_system":"epss","scoring_elements":"0.89213","published_at":"2026-04-21T12:55:00Z"},{"value":"0.04686","scoring_system":"epss","scoring_elements":"0.89321","published_at":"2026-04-04T12:55:00Z"},{"value":"0.04686","scoring_system":"epss","scoring_elements":"0.89307","published_at":"2026-04-02T12:55:00Z"},{"value":"0.05478","scoring_system":"epss","scoring_elements":"0.90288","published_at":"2026-05-14T12:55:00Z"},{"value":"0.05478","scoring_system":"epss","scoring_elements":"0.90274","published_at":"2026-05-12T12:55:00Z"},{"value":"0.05478","scoring_system":"epss","scoring_elements":"0.90265","published_at":"2026-05-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2022-32209"},{"reference_url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32209","reference_id":"","reference_type":"","scores":[],"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-32209"},{"reference_url":"https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N"}],"url":"https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml"},{"reference_url":"https://github.com/rails/rails-html-sanitizer","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rails/rails-html-sanitizer"},{"reference_url":"https://github.com/rails/rails-html-sanitizer/commit/45a5c10fed3d9aa141594c80afa06d748fa0967d","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rails/rails-html-sanitizer/commit/45a5c10fed3d9aa141594c80afa06d748fa0967d"},{"reference_url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2022-32209.yml","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails-html-sanitizer/CVE-2022-32209.yml"},{"reference_url":"https://groups.google.com/g/rubyonrails-security/c/ce9PhUANQ6s","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3","scoring_elements":""},{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://groups.google.com/g/rubyonrails-security/c/ce9PhUANQ6s"},{"reference_url":"https://hackerone.com/reports/1530898","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://hackerone.com/reports/1530898"},{"reference_url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00012.html","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.debian.org/debian-lts-announce/2022/12/msg00012.html"},{"reference_url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00045.html","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.debian.org/debian-lts-announce/2024/09/msg00045.html"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AGRLWBEB3S5AU3D4TTROIS7O6QPHDTRH","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AGRLWBEB3S5AU3D4TTROIS7O6QPHDTRH"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NHDACMCLWE32BZZTSNWQPIFUAD5I6Q47","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NHDACMCLWE32BZZTSNWQPIFUAD5I6Q47"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AGRLWBEB3S5AU3D4TTROIS7O6QPHDTRH","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/AGRLWBEB3S5AU3D4TTROIS7O6QPHDTRH"},{"reference_url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NHDACMCLWE32BZZTSNWQPIFUAD5I6Q47","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/NHDACMCLWE32BZZTSNWQPIFUAD5I6Q47"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32209","reference_id":"","reference_type":"","scores":[{"value":"6.1","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-32209"},{"reference_url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1013806","reference_id":"1013806","reference_type":"","scores":[],"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1013806"},{"reference_url":"https://bugzilla.redhat.com/show_bug.cgi?id=2101882","reference_id":"2101882","reference_type":"","scores":[],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2101882"},{"reference_url":"https://github.com/advisories/GHSA-pg8v-g4xq-hww9","reference_id":"GHSA-pg8v-g4xq-hww9","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-pg8v-g4xq-hww9"},{"reference_url":"https://access.redhat.com/errata/RHSA-2022:8506","reference_id":"RHSA-2022:8506","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2022:8506"}],"fixed_packages":[],"aliases":["CVE-2022-32209","GHSA-pg8v-g4xq-hww9"],"risk_score":3.1,"exploitability":"0.5","weighted_severity":"6.2","resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-ete9-xwuw-puf8"}],"fixing_vulnerabilities":[],"risk_score":"3.1","resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/rubygem-rails-html-sanitizer@1.4.3-2%3Farch=el8sat"}