{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:opnsense:opnsense:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "21.7.0"
              },
              {
                "fixed": "21.7.4"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "96214877bef00c196903a9ec8b4e1afac75b7a18"
            }
          ],
          "repo": "https://github.com/opnsense/core",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-r32j-xgg3-w2rw"
  ],
  "database_specific": {
    "unresolved_ranges": [
      {
        "cpes": [
          "cpe:2.3:a:opnsense:opnsense:*:*:*:*:*:*:*:*"
        ],
        "extracted_events": [
          {
            "last_affected": "19.7.0"
          }
        ],
        "source": "CPE_RANGE",
        "vendor_product": "opnsense:opnsense"
      }
    ]
  },
  "details": "A Cross-site scripting (XSS) vulnerability was discovered in OPNsense before 21.7.4 via the LDAP attribute return in the authentication tester.",
  "id": "CVE-2021-42770",
  "modified": "2026-08-07T11:31:15.512030776Z",
  "published": "2021-11-08T16:15:07.547Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://cert.orange.com"
    },
    {
      "type": "ADVISORY",
      "url": "https://opnsense.org/opnsense-21-7-4-released/"
    },
    {
      "type": "EVIDENCE",
      "url": "https://github.com/orangecertcc/security-research/security/advisories/GHSA-r32j-xgg3-w2rw"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ]
}