def METHOD_NAME(usn_db):
    for usn in usn_db:
        usn_data = usn_db[usn]
        references = get_usn_references(usn_data.get("id"))
        for cve in usn_data.get("cves", []):
            # The db sometimes contains entries like
            # {'cves': ['python-pgsql vulnerabilities', 'CVE-2006-2313', 'CVE-2006-2314']}
            # This `if` filters entries like 'python-pgsql vulnerabilities'
            if not is_cve(cve):
                continue
            yield AdvisoryData(
                aliases=[cve],
                summary="",
                references=references,
            )